Source code for asyncqlio.backends.postgresql
"""
PostgreSQL backends.
.. currentmodule:: asyncqlio.backends.postgresql
.. autosummary::
:toctree:
asyncpg
"""
# used for namespace packages
from pkgutil import extend_path
from asyncqlio.backends.base import BaseDialect
__path__ = extend_path(__path__, __name__)
DEFAULT_CONNECTOR = "asyncpg"
[docs]class PostgresqlDialect(BaseDialect):
"""
The dialect for Postgres.
"""
@property
def has_checkpoints(self):
return True
@property
def has_serial(self):
return True
@property
def lastval_method(self):
return "LASTVAL()"
@property
def has_returns(self):
return True
@property
def has_ilike(self):
return True