pystratum_pgsql.backend package¶
Submodules¶
pystratum_pgsql.backend.PgSqlBackend module¶
-
class
pystratum_pgsql.backend.PgSqlBackend.PgSqlBackend[source]¶ Bases:
pystratum_backend.Backend.BackendSemi interface for PyStratum’s backends.
-
create_constant_worker(config: configparser.ConfigParser, io: pystratum_backend.StratumStyle.StratumStyle) → Optional[pystratum_backend.ConstantWorker.ConstantWorker][source]¶ Creates the object that does the actual execution of the constant command for the backend.
Parameters: - config (ConfigParser) – The settings from the PyStratum configuration file.
- io (StratumStyle) – The output object.
Return type: ConstantWorker|None
-
create_routine_loader_worker(config: configparser.ConfigParser, io: pystratum_backend.StratumStyle.StratumStyle) → Optional[pystratum_backend.RoutineLoaderWorker.RoutineLoaderWorker][source]¶ Creates the object that does the actual execution of the routine loader command for the backend.
Parameters: - config (ConfigParser) – The settings from the PyStratum configuration file.
- io (StratumStyle) – The output object.
Return type: RoutineLoaderWorker|None
-
create_routine_wrapper_generator_worker(config: configparser.ConfigParser, io: pystratum_backend.StratumStyle.StratumStyle) → Optional[pystratum_backend.RoutineWrapperGeneratorWorker.RoutineWrapperGeneratorWorker][source]¶ Creates the object that does the actual execution of the routine wrapper generator command for the backend.
Parameters: - config (ConfigParser) – The settings from the PyStratum configuration file.
- io (StratumStyle) – The output object.
Return type: RoutineWrapperGeneratorWorker|None
-
pystratum_pgsql.backend.PgSqlConstantWorker module¶
-
class
pystratum_pgsql.backend.PgSqlConstantWorker.PgSqlConstantWorker(io: pystratum_backend.StratumStyle.StratumStyle, config: configparser.ConfigParser)[source]¶ Bases:
pystratum_pgsql.backend.PgSqlWorker.PgSqlWorker,pystratum_common.backend.CommonConstantWorker.CommonConstantWorkerClass for creating constants based on column widths, and auto increment columns and labels for PostgreSQL databases.
pystratum_pgsql.backend.PgSqlRoutineLoaderWorker module¶
-
class
pystratum_pgsql.backend.PgSqlRoutineLoaderWorker.PgSqlRoutineLoaderWorker(io: pystratum_backend.StratumStyle.StratumStyle, config: configparser.ConfigParser)[source]¶ Bases:
pystratum_pgsql.backend.PgSqlWorker.PgSqlWorker,pystratum_common.backend.CommonRoutineLoaderWorker.CommonRoutineLoaderWorkerClass for loading stored routines into a PostgreSQL instance from (pseudo) SQL files.
pystratum_pgsql.backend.PgSqlRoutineWrapperGeneratorWorker module¶
-
class
pystratum_pgsql.backend.PgSqlRoutineWrapperGeneratorWorker.PgSqlRoutineWrapperGeneratorWorker(io: pystratum_backend.StratumStyle.StratumStyle, config: configparser.ConfigParser)[source]¶ Bases:
pystratum_pgsql.backend.PgSqlWorker.PgSqlWorker,pystratum_common.backend.CommonRoutineWrapperGeneratorWorker.CommonRoutineWrapperGeneratorWorkerClass for generating a class with wrapper methods for calling stored routines in a PostgreSQL database.