PostgreSQL¶
The postgres/sqlalchemy adapter provides a PostgreSQL-specific SQLAlchemy integration, including a concrete adapter,
session manager, and session manager registry that extend the base SQLAlchemy components.
Session Managers¶
PostgreSQL-specific session manager handling connection pooling and lifecycle for PostgreSQL databases.
archipy.adapters.postgres.sqlalchemy.session_managers.PostgresSQlAlchemySessionManager ¶
Bases: BaseSQLAlchemySessionManager[PostgresSQLAlchemyConfig]
Synchronous SQLAlchemy session manager for PostgreSQL.
Inherits from BaseSQLAlchemySessionManager to provide PostgreSQL-specific session management, including connection URL creation and engine configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
orm_config
|
PostgresSQLAlchemyConfig | None
|
PostgreSQL-specific configuration. If None, uses global config. |
None
|
Source code in archipy/adapters/postgres/sqlalchemy/session_managers.py
archipy.adapters.postgres.sqlalchemy.session_managers.PostgresSQlAlchemySessionManager.engine
instance-attribute
¶
archipy.adapters.postgres.sqlalchemy.session_managers.PostgresSQlAlchemySessionManager.get_session ¶
Retrieve a thread-safe SQLAlchemy session.
Returns:
| Name | Type | Description |
|---|---|---|
Session |
Session
|
A SQLAlchemy session instance for database operations. |
Raises:
| Type | Description |
|---|---|
DatabaseConnectionError
|
If there's an error creating the session. |
DatabaseConfigurationError
|
If there's an error in the database configuration. |
Source code in archipy/adapters/base/sqlalchemy/session_managers.py
archipy.adapters.postgres.sqlalchemy.session_managers.PostgresSQlAlchemySessionManager.remove_session ¶
Remove the current session from the registry.
Cleans up the session to prevent resource leaks, typically called at the end of a request.
Raises:
| Type | Description |
|---|---|
DatabaseConnectionError
|
If there's an error removing the session. |
DatabaseConfigurationError
|
If there's an error in the database configuration. |
Source code in archipy/adapters/base/sqlalchemy/session_managers.py
archipy.adapters.postgres.sqlalchemy.session_managers.AsyncPostgresSQlAlchemySessionManager ¶
Bases: AsyncBaseSQLAlchemySessionManager[PostgresSQLAlchemyConfig]
Asynchronous SQLAlchemy session manager for PostgreSQL.
Inherits from AsyncBaseSQLAlchemySessionManager to provide async PostgreSQL-specific session management, including connection URL creation and async engine configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
orm_config
|
PostgresSQLAlchemyConfig | None
|
PostgreSQL-specific configuration. If None, uses global config. |
None
|
Source code in archipy/adapters/postgres/sqlalchemy/session_managers.py
archipy.adapters.postgres.sqlalchemy.session_managers.AsyncPostgresSQlAlchemySessionManager.engine
instance-attribute
¶
archipy.adapters.postgres.sqlalchemy.session_managers.AsyncPostgresSQlAlchemySessionManager.get_session ¶
Retrieve a task-safe async SQLAlchemy session.
Returns:
| Name | Type | Description |
|---|---|---|
AsyncSession |
AsyncSession
|
An async SQLAlchemy session instance for database operations. |
Raises:
| Type | Description |
|---|---|
DatabaseConnectionError
|
If there's an error creating the session. |
DatabaseConfigurationError
|
If there's an error in the database configuration. |
Source code in archipy/adapters/base/sqlalchemy/session_managers.py
archipy.adapters.postgres.sqlalchemy.session_managers.AsyncPostgresSQlAlchemySessionManager.remove_session
async
¶
Remove the current session from the registry.
Cleans up the session to prevent resource leaks, typically called at the end of a request.
Raises:
| Type | Description |
|---|---|
DatabaseConnectionError
|
If there's an error removing the session. |
DatabaseConfigurationError
|
If there's an error in the database configuration. |
Source code in archipy/adapters/base/sqlalchemy/session_managers.py
options: show_root_toc_entry: false heading_level: 3
Session Manager Registry¶
Registry for PostgreSQL session manager instances.
archipy.adapters.postgres.sqlalchemy.session_manager_registry.PostgresSessionManagerRegistry ¶
Bases: SessionManagerRegistry
Registry for PostgreSQL SQLAlchemy session managers.
This registry provides a centralized access point for both synchronous and asynchronous PostgreSQL session managers, implementing the Service Locator pattern. It lazily initializes the appropriate session manager when first requested.
The registry maintains singleton instances of: - A synchronous session manager (PostgresSQlAlchemySessionManager) - An asynchronous session manager (AsyncPostgresSQlAlchemySessionManager)
Source code in archipy/adapters/postgres/sqlalchemy/session_manager_registry.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | |
archipy.adapters.postgres.sqlalchemy.session_manager_registry.PostgresSessionManagerRegistry.get_sync_manager
classmethod
¶
Get the synchronous PostgreSQL session manager instance.
Lazily initializes a default PostgresSQlAlchemySessionManager if none has been set.
Returns:
| Name | Type | Description |
|---|---|---|
SessionManagerPort |
SessionManagerPort
|
The registered synchronous session manager |
Raises:
| Type | Description |
|---|---|
DatabaseConnectionError
|
If there's an error initializing the session manager |
Source code in archipy/adapters/postgres/sqlalchemy/session_manager_registry.py
archipy.adapters.postgres.sqlalchemy.session_manager_registry.PostgresSessionManagerRegistry.set_sync_manager
classmethod
¶
Set a custom synchronous session manager.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
manager
|
SessionManagerPort
|
An instance implementing SessionManagerPort |
required |
Raises:
| Type | Description |
|---|---|
InvalidArgumentError
|
If the manager is None or doesn't implement SessionManagerPort |
Source code in archipy/adapters/postgres/sqlalchemy/session_manager_registry.py
archipy.adapters.postgres.sqlalchemy.session_manager_registry.PostgresSessionManagerRegistry.get_async_manager
classmethod
¶
Get the asynchronous PostgreSQL session manager instance.
Lazily initializes a default AsyncPostgresSQlAlchemySessionManager if none has been set.
Returns:
| Name | Type | Description |
|---|---|---|
AsyncSessionManagerPort |
AsyncSessionManagerPort
|
The registered asynchronous session manager |
Raises:
| Type | Description |
|---|---|
DatabaseConnectionError
|
If there's an error initializing the session manager |
Source code in archipy/adapters/postgres/sqlalchemy/session_manager_registry.py
archipy.adapters.postgres.sqlalchemy.session_manager_registry.PostgresSessionManagerRegistry.set_async_manager
classmethod
¶
Set a custom asynchronous session manager.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
manager
|
AsyncSessionManagerPort
|
An instance implementing AsyncSessionManagerPort |
required |
Raises:
| Type | Description |
|---|---|
InvalidArgumentError
|
If the manager is None or doesn't implement AsyncSessionManagerPort |
Source code in archipy/adapters/postgres/sqlalchemy/session_manager_registry.py
archipy.adapters.postgres.sqlalchemy.session_manager_registry.PostgresSessionManagerRegistry.reset
classmethod
¶
Reset the registry to its initial state.
This method clears both registered managers, useful for testing.
Source code in archipy/adapters/postgres/sqlalchemy/session_manager_registry.py
options: show_root_toc_entry: false heading_level: 3
Adapters¶
Concrete PostgreSQL adapter built on top of the base SQLAlchemy adapter with PostgreSQL-specific configuration.
archipy.adapters.postgres.sqlalchemy.adapters.PostgresSQLAlchemyAdapter ¶
Bases: BaseSQLAlchemyAdapter[PostgresSQLAlchemyConfig]
Synchronous SQLAlchemy adapter for PostgreSQL.
Inherits from BaseSQLAlchemyAdapter to provide PostgreSQL-specific session management and database operations.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
orm_config
|
PostgresSQLAlchemyConfig | None
|
PostgreSQL-specific configuration. If None, uses global config. |
None
|
Source code in archipy/adapters/postgres/sqlalchemy/adapters.py
archipy.adapters.postgres.sqlalchemy.adapters.PostgresSQLAlchemyAdapter.session_manager
instance-attribute
¶
archipy.adapters.postgres.sqlalchemy.adapters.PostgresSQLAlchemyAdapter.get_session ¶
Get a database session.
Returns:
| Name | Type | Description |
|---|---|---|
Session |
Session
|
A SQLAlchemy session. |
Raises:
| Type | Description |
|---|---|
DatabaseConnectionError
|
If there's an error getting the session. |
DatabaseConfigurationError
|
If there's an error in the database configuration. |
Source code in archipy/adapters/base/sqlalchemy/adapters.py
archipy.adapters.postgres.sqlalchemy.adapters.PostgresSQLAlchemyAdapter.execute_search_query ¶
execute_search_query(
entity: type[T],
query: Select,
pagination: PaginationDTO | None = None,
sort_info: SortDTO | None = None,
has_multiple_entities: bool = False,
) -> tuple[list[T], int]
Execute a search query with pagination and sorting.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
type[T]
|
The entity class to query. |
required |
query
|
Select
|
The SQLAlchemy SELECT query. |
required |
pagination
|
PaginationDTO | None
|
Optional pagination settings. |
None
|
sort_info
|
SortDTO | None
|
Optional sorting information. |
None
|
has_multiple_entities
|
bool
|
Optional bool. |
False
|
Returns:
| Type | Description |
|---|---|
tuple[list[T], int]
|
Tuple of the list of entities and the total count. |
Raises:
| Type | Description |
|---|---|
DatabaseQueryError
|
If the database query fails. |
DatabaseTimeoutError
|
If the query times out. |
DatabaseConnectionError
|
If there's a connection error. |
DatabaseTransactionError
|
If there's a transaction error. |
Source code in archipy/adapters/base/sqlalchemy/adapters.py
archipy.adapters.postgres.sqlalchemy.adapters.PostgresSQLAlchemyAdapter.create ¶
Create a new entity in the database.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
T
|
The entity to create. |
required |
Returns:
| Type | Description |
|---|---|
T | None
|
The created entity with updated attributes, preserving the original type. |
Raises:
| Type | Description |
|---|---|
InvalidEntityTypeError
|
If the entity type is not a valid SQLAlchemy model. |
DatabaseQueryError
|
If the database operation fails. |
DatabaseIntegrityError
|
If there's an integrity constraint violation. |
DatabaseConstraintError
|
If there's a constraint violation. |
DatabaseConnectionError
|
If there's a connection error. |
DatabaseTransactionError
|
If there's a transaction error. |
Source code in archipy/adapters/base/sqlalchemy/adapters.py
archipy.adapters.postgres.sqlalchemy.adapters.PostgresSQLAlchemyAdapter.bulk_create ¶
Creates multiple entities in a single database operation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entities
|
list[T]
|
List of entities to create. |
required |
Returns:
| Type | Description |
|---|---|
list[T] | None
|
List of created entities with updated attributes, preserving original types. |
Raises:
| Type | Description |
|---|---|
InvalidEntityTypeError
|
If any entity is not a valid SQLAlchemy model. |
DatabaseQueryError
|
If the database operation fails. |
DatabaseIntegrityError
|
If there's an integrity constraint violation. |
DatabaseConstraintError
|
If there's a constraint violation. |
DatabaseConnectionError
|
If there's a connection error. |
DatabaseTransactionError
|
If there's a transaction error. |
Source code in archipy/adapters/base/sqlalchemy/adapters.py
archipy.adapters.postgres.sqlalchemy.adapters.PostgresSQLAlchemyAdapter.get_by_uuid ¶
Retrieve an entity by its UUID.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity_type
|
type[T]
|
The type of entity to retrieve. |
required |
entity_uuid
|
UUID
|
The UUID of the entity. |
required |
Returns:
| Type | Description |
|---|---|
BaseEntity | None
|
The entity if found, None otherwise. |
Raises:
| Type | Description |
|---|---|
InvalidEntityTypeError
|
If the entity type is not a valid SQLAlchemy model. |
DatabaseQueryError
|
If the database operation fails. |
DatabaseTimeoutError
|
If the query times out. |
DatabaseConnectionError
|
If there's a connection error. |
DatabaseTransactionError
|
If there's a transaction error. |
Source code in archipy/adapters/base/sqlalchemy/adapters.py
archipy.adapters.postgres.sqlalchemy.adapters.PostgresSQLAlchemyAdapter.delete ¶
Delete an entity from the database.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
T
|
The entity to delete. |
required |
Raises:
| Type | Description |
|---|---|
InvalidEntityTypeError
|
If the entity is not a valid SQLAlchemy model. |
DatabaseQueryError
|
If the database operation fails. |
DatabaseIntegrityError
|
If there's an integrity constraint violation. |
DatabaseConstraintError
|
If there's a constraint violation. |
DatabaseConnectionError
|
If there's a connection error. |
DatabaseTransactionError
|
If there's a transaction error. |
Source code in archipy/adapters/base/sqlalchemy/adapters.py
archipy.adapters.postgres.sqlalchemy.adapters.PostgresSQLAlchemyAdapter.bulk_delete ¶
Delete multiple entities from the database.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entities
|
list[T]
|
List of entities to delete. |
required |
Raises:
| Type | Description |
|---|---|
InvalidEntityTypeError
|
If any entity is not a valid SQLAlchemy model. |
DatabaseQueryError
|
If the database operation fails. |
DatabaseIntegrityError
|
If there's an integrity constraint violation. |
DatabaseConstraintError
|
If there's a constraint violation. |
DatabaseConnectionError
|
If there's a connection error. |
DatabaseTransactionError
|
If there's a transaction error. |
Source code in archipy/adapters/base/sqlalchemy/adapters.py
archipy.adapters.postgres.sqlalchemy.adapters.PostgresSQLAlchemyAdapter.execute ¶
Execute a SQLAlchemy statement.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
statement
|
Executable
|
The SQLAlchemy statement to execute. |
required |
params
|
AnyExecuteParams | None
|
Optional parameters for the statement. |
None
|
Returns:
| Type | Description |
|---|---|
Result[Any]
|
The result of the execution. |
Raises:
| Type | Description |
|---|---|
DatabaseQueryError
|
If the database operation fails. |
DatabaseTimeoutError
|
If the query times out. |
DatabaseConnectionError
|
If there's a connection error. |
DatabaseTransactionError
|
If there's a transaction error. |
Source code in archipy/adapters/base/sqlalchemy/adapters.py
archipy.adapters.postgres.sqlalchemy.adapters.PostgresSQLAlchemyAdapter.scalars ¶
Execute a SQLAlchemy statement and return scalar results.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
statement
|
Executable
|
The SQLAlchemy statement to execute. |
required |
params
|
AnyExecuteParams | None
|
Optional parameters for the statement. |
None
|
Returns:
| Type | Description |
|---|---|
ScalarResult[Any]
|
The scalar results of the execution. |
Raises:
| Type | Description |
|---|---|
DatabaseQueryError
|
If the database operation fails. |
DatabaseTimeoutError
|
If the query times out. |
DatabaseConnectionError
|
If there's a connection error. |
DatabaseTransactionError
|
If there's a transaction error. |
Source code in archipy/adapters/base/sqlalchemy/adapters.py
archipy.adapters.postgres.sqlalchemy.adapters.AsyncPostgresSQLAlchemyAdapter ¶
Bases: AsyncBaseSQLAlchemyAdapter[PostgresSQLAlchemyConfig]
Asynchronous SQLAlchemy adapter for PostgreSQL.
Inherits from AsyncBaseSQLAlchemyAdapter to provide async PostgreSQL-specific session management and database operations.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
orm_config
|
PostgresSQLAlchemyConfig | None
|
PostgreSQL-specific configuration. If None, uses global config. |
None
|
Source code in archipy/adapters/postgres/sqlalchemy/adapters.py
archipy.adapters.postgres.sqlalchemy.adapters.AsyncPostgresSQLAlchemyAdapter.session_manager
instance-attribute
¶
session_manager: AsyncBaseSQLAlchemySessionManager[
ConfigT
] = _create_async_session_manager(configs)
archipy.adapters.postgres.sqlalchemy.adapters.AsyncPostgresSQLAlchemyAdapter.get_session ¶
Get a database session.
Returns:
| Name | Type | Description |
|---|---|---|
AsyncSession |
AsyncSession
|
A SQLAlchemy async session. |
Raises:
| Type | Description |
|---|---|
DatabaseConnectionError
|
If there's an error getting the session. |
DatabaseConfigurationError
|
If there's an error in the database configuration. |
Source code in archipy/adapters/base/sqlalchemy/adapters.py
archipy.adapters.postgres.sqlalchemy.adapters.AsyncPostgresSQLAlchemyAdapter.execute_search_query
async
¶
execute_search_query(
entity: type[T],
query: Select,
pagination: PaginationDTO | None,
sort_info: SortDTO | None = None,
has_multiple_entities: bool = False,
) -> tuple[list[T], int]
Execute a search query with pagination and sorting.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
type[T]
|
The entity class to query. |
required |
query
|
Select
|
The SQLAlchemy SELECT query. |
required |
pagination
|
PaginationDTO | None
|
Optional pagination settings. |
required |
sort_info
|
SortDTO | None
|
Optional sorting information. |
None
|
has_multiple_entities
|
bool
|
Optional bool |
False
|
Returns:
| Type | Description |
|---|---|
tuple[list[T], int]
|
Tuple of the list of entities and the total count. |
Raises:
| Type | Description |
|---|---|
DatabaseQueryError
|
If the database query fails. |
DatabaseTimeoutError
|
If the query times out. |
DatabaseConnectionError
|
If there's a connection error. |
DatabaseTransactionError
|
If there's a transaction error. |
Source code in archipy/adapters/base/sqlalchemy/adapters.py
archipy.adapters.postgres.sqlalchemy.adapters.AsyncPostgresSQLAlchemyAdapter.create
async
¶
Create a new entity in the database.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
T
|
The entity to create. |
required |
Returns:
| Type | Description |
|---|---|
T | None
|
The created entity with updated attributes, preserving the original type. |
Raises:
| Type | Description |
|---|---|
InvalidEntityTypeError
|
If the entity type is not a valid SQLAlchemy model. |
DatabaseQueryError
|
If the database operation fails. |
DatabaseIntegrityError
|
If there's an integrity constraint violation. |
DatabaseConstraintError
|
If there's a constraint violation. |
DatabaseConnectionError
|
If there's a connection error. |
DatabaseTransactionError
|
If there's a transaction error. |
Source code in archipy/adapters/base/sqlalchemy/adapters.py
archipy.adapters.postgres.sqlalchemy.adapters.AsyncPostgresSQLAlchemyAdapter.bulk_create
async
¶
Creates multiple entities in a single database operation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entities
|
list[T]
|
List of entities to create. |
required |
Returns:
| Type | Description |
|---|---|
list[T] | None
|
List of created entities with updated attributes, preserving original types. |
Raises:
| Type | Description |
|---|---|
InvalidEntityTypeError
|
If any entity is not a valid SQLAlchemy model. |
DatabaseQueryError
|
If the database operation fails. |
DatabaseIntegrityError
|
If there's an integrity constraint violation. |
DatabaseConstraintError
|
If there's a constraint violation. |
DatabaseConnectionError
|
If there's a connection error. |
DatabaseTransactionError
|
If there's a transaction error. |
Source code in archipy/adapters/base/sqlalchemy/adapters.py
archipy.adapters.postgres.sqlalchemy.adapters.AsyncPostgresSQLAlchemyAdapter.get_by_uuid
async
¶
Retrieve an entity by its UUID.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity_type
|
type[T]
|
The type of entity to retrieve. |
required |
entity_uuid
|
UUID
|
The UUID of the entity. |
required |
Returns:
| Type | Description |
|---|---|
BaseEntity | None
|
The entity if found, None otherwise. |
Raises:
| Type | Description |
|---|---|
InvalidEntityTypeError
|
If the entity type is not a valid SQLAlchemy model. |
DatabaseQueryError
|
If the database operation fails. |
DatabaseTimeoutError
|
If the query times out. |
DatabaseConnectionError
|
If there's a connection error. |
DatabaseTransactionError
|
If there's a transaction error. |
Source code in archipy/adapters/base/sqlalchemy/adapters.py
archipy.adapters.postgres.sqlalchemy.adapters.AsyncPostgresSQLAlchemyAdapter.delete
async
¶
Delete an entity from the database.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entity
|
BaseEntity
|
The entity to delete. |
required |
Raises:
| Type | Description |
|---|---|
InvalidEntityTypeError
|
If the entity is not a valid SQLAlchemy model. |
DatabaseQueryError
|
If the database operation fails. |
DatabaseIntegrityError
|
If there's an integrity constraint violation. |
DatabaseConstraintError
|
If there's a constraint violation. |
DatabaseConnectionError
|
If there's a connection error. |
DatabaseTransactionError
|
If there's a transaction error. |
Source code in archipy/adapters/base/sqlalchemy/adapters.py
archipy.adapters.postgres.sqlalchemy.adapters.AsyncPostgresSQLAlchemyAdapter.bulk_delete
async
¶
Delete multiple entities from the database.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
entities
|
list[T]
|
List of entities to delete. |
required |
Raises:
| Type | Description |
|---|---|
InvalidEntityTypeError
|
If any entity is not a valid SQLAlchemy model. |
DatabaseQueryError
|
If the database operation fails. |
DatabaseIntegrityError
|
If there's an integrity constraint violation. |
DatabaseConstraintError
|
If there's a constraint violation. |
DatabaseConnectionError
|
If there's a connection error. |
DatabaseTransactionError
|
If there's a transaction error. |
Source code in archipy/adapters/base/sqlalchemy/adapters.py
archipy.adapters.postgres.sqlalchemy.adapters.AsyncPostgresSQLAlchemyAdapter.execute
async
¶
Execute a SQLAlchemy statement.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
statement
|
Executable
|
The SQLAlchemy statement to execute. |
required |
params
|
AnyExecuteParams | None
|
Optional parameters for the statement. |
None
|
Returns:
| Type | Description |
|---|---|
Result[Any]
|
The result of the execution. |
Raises:
| Type | Description |
|---|---|
DatabaseQueryError
|
If the database operation fails. |
DatabaseTimeoutError
|
If the query times out. |
DatabaseConnectionError
|
If there's a connection error. |
DatabaseTransactionError
|
If there's a transaction error. |
Source code in archipy/adapters/base/sqlalchemy/adapters.py
archipy.adapters.postgres.sqlalchemy.adapters.AsyncPostgresSQLAlchemyAdapter.scalars
async
¶
Execute a SQLAlchemy statement and return scalar results.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
statement
|
Executable
|
The SQLAlchemy statement to execute. |
required |
params
|
AnyExecuteParams | None
|
Optional parameters for the statement. |
None
|
Returns:
| Type | Description |
|---|---|
ScalarResult[Any]
|
The scalar results of the execution. |
Raises:
| Type | Description |
|---|---|
DatabaseQueryError
|
If the database operation fails. |
DatabaseTimeoutError
|
If the query times out. |
DatabaseConnectionError
|
If there's a connection error. |
DatabaseTransactionError
|
If there's a transaction error. |
Source code in archipy/adapters/base/sqlalchemy/adapters.py
options: show_root_toc_entry: false heading_level: 3