db.schemas.insert
This module contains functions that help with inserting the appropriate number of rows in various database types.
Module Contents
Functions
Data
logger
__all__
API
emtellipro.db.schemas.insert.logger
Value: getLogger(...)
emtellipro.db.schemas.insert.__all__
Value: ['exec_insert', 'exec_insert_default_returning_id', 'exec_returning_id', 'duckdb_caching_connection', 'snowflake_caching_connection']
emtellipro.db.schemas.insert.exec_returning_id
emtellipro.db.schemas.insert.exec_insert
Execute INSERT statements for the given table, using the provided values.
Parameters:
SQLAlchemy Connection object
The Model class representing the table to insert into
list of dictionaries containing the values to be
inserted; these must all have the same set of keys, unless
fill_in_defaults is enabled.
if True, fill in None for missing keys in
values. When inserting multiple values, they must all have the
same set of keys to match the list of columns in the INSERT; if
values come from variable JSON objects, this constraint may not
hold, so you can use this parameter to add the missing keys with
values of None.
emtellipro.db.schemas.insert.exec_insert_default_returning_id
For these tables, there are no columns other than the ID, so we have no values to insert.
emtellipro.db.schemas.insert.duckdb_caching_connection
emtellipro.db.schemas.insert.snowflake_caching_connection
Context manager that will return a new connection that caches to a directory and will quickly store to Snowflake using COPY INTO.

