Base
blackline.adapters.base
AdapterBase
Bases: ABC
Source code in BAR /opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/blackline/adapters/base.py
condition = condition
instance-attribute
config = config
instance-attribute
date_format = '%Y-%m-%d'
class-attribute
instance-attribute
__init__(config, condition=None)
connection()
abstractmethod
Override this method to return a context manager that is connection object.
execute(sql, values=None)
abstractmethod
Override this method to execute a query. It should run a self.connection() as a context manager and return the results of the query.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
sql |
str
|
The SQL query string to execute. |
required |
values |
The values to pass into the sql query if query parameters are used. |
None
|
Returns:
Name | Type | Description |
---|---|---|
Any |
Any
|
A Cursor with an executed query. |