dvc.core.database.postgres package#

Module contents#

class dvc.core.database.postgres.PostgresSQLFileExecutor(db_conn: psycopg2.extensions.connection, target_schema: str)[source]#

Bases: dvc.core.database.SQLFileExecutorTemplate

FILE_HASHER = <dvc.core.hash.FileHasher object>#
METADATA_SQL_FOLDER_PATH = PosixPath('/home/docs/checkouts/readthedocs.org/user_builds/python-database-version-control/checkouts/latest/src/dvc/core/database/postgres')#
execute_database_revision(database_revision_file: dvc.core.struct.DatabaseRevisionFile)[source]#

Execute database revision and write to database version control tables :param database_revision_file: :return:

get_latest_database_version() dvc.core.struct.DatabaseVersion[source]#

Get the latest database version :return:

set_up_database_revision_control_tables()[source]#

Create all database revision control schema and tables :return: