gws.base.database.connection
¶
Source code: gws.base.database.connection
Module Contents¶
- class gws.base.database.connection.Object(db: gws.DatabaseProvider, conn: gws.lib.sa.Connection)¶
Bases:
gws.DatabaseConnection
Database connection.
Extends
sqlalchemy.Connection
and provides some convenience methods.- saConn: gws.lib.sa.Connection¶
- close()¶
- commit()¶
- exec(sql, **params)¶
- exec_commit(sql, **params)¶
- exec_rollback(sql, **params)¶
- execute(stmt, params=None, execution_options=None)¶
- fetch_all(stmt, **params)¶
- fetch_first(stmt, **params)¶
- fetch_int(stmt, **params)¶
- fetch_ints(stmt, **params)¶
- fetch_scalar(stmt, **params)¶
- fetch_scalars(stmt, **params)¶
- fetch_string(stmt, **params)¶
- fetch_strings(stmt, **params)¶
- rollback()¶