pat2vec.util.migrate_to_db

Functions

create_indexes(engine, schema_name, ...)

Creates an index on the specified table and columns, if it doesn't already exist.

migrate_csv_to_db(config_obj)

Migrates data from CSV files (file-based backend) to the Database backend.

pat2vec.util.migrate_to_db.create_indexes(engine, schema_name, table_name, index_columns)[source]

Creates an index on the specified table and columns, if it doesn’t already exist.

pat2vec.util.migrate_to_db.migrate_csv_to_db(config_obj)[source]

Migrates data from CSV files (file-based backend) to the Database backend.. It iterates over known directories in the config, reads CSVs and pushes them to the DB.

Parameters:

config_obj (Any)