dbprocessing.DButils¶
Direct interfacing to dbprocessing databases.
Provides interface specific to dbprocessing databases (not general SQL databases) and performs most functionality for retrieving, changing, etc. of records.
Functions
|
Step through and create the DB structure, relationships and constraints |
|
Build postgresl database URL |
Classes
|
Utility routines for DBProcessing class |
Exceptions
Error in accessing the database |
|
Expected data not found in the database |
|
Higher-level error (used only for failures in logging) |
|
Not used |
- dbprocessing.DButils.create_tables(filename='dbprocessing_default.db', dialect='sqlite')[source]¶
Step through and create the DB structure, relationships and constraints
- dbprocessing.DButils.postgresql_url(databasename)[source]¶
Build postgresl database URL
Environment variable
PGUSER
is required. Will also usePGHOST
,PGPORT
(requiresPGHOST
),PGPASSWORD
to define database server to connect to. Anything unspecified is postgresql default.- Parameters
- databasename
str
Name of the database
- databasename
- Returns
str
Full postgresql URL, suitable for use in
create_engine()
- exception dbprocessing.DButils.DBProcessingError[source]¶
Higher-level error (used only for failures in logging)
Release: 0.1.0 Doc generation date: Feb 10, 2022