sql_tools
File Purpose: misc. tools related to SQL.
Note that many of these solve the same issues that SQLAlchemy solves.
Functions
|
depending on assert_exists, may assert location exists or that it does not exist. |
context manager to suppress sqlglot warnings, e.g. about unsupported features of a dialect. |
|
|
return sql engine "backend" implied by engine string. |
|
returns sql engine implied by location string. |
|
returns "normalized" location string from location input. |
|
transpile sql statement into postgres. |
Classes
|
class which wraps a database connection to an online PostgreSQL database. |
|
class which provides some basic SQL-related tools for a database connection. |
|
class which mimics a database connection to an in-memory database. |