getml.database¶
This module contains communication routines to access various databases.
The connect_bigquery()
,
connect_hana()
,
connect_greenplum()
,
connect_mariadb()
,
connect_mysql()
,
connect_postgres()
, and
connect_sqlite3()
functions establish a
connection between a database and the getML engine. During the data
import using either the read_db()
or
read_query()
methods of a
DataFrame
instance or the corresponding
from_db()
class method all data will be
directly loaded from the database into the engine without ever passing
the Python interpreter.
In addition, several auxiliary functions that might be handy during the analysis and interaction with the database are provided.
Functions¶
|
Creates a new BigQuery database connection. |
|
Creates a new DuckDB database connection. |
|
Creates a new Greenplum database connection. |
|
Creates a new HANA database connection. |
|
Creates a new MariaDB database connection. |
|
Creates a new MySQL database connection. |
|
Creates a new ODBC database connection. |
|
Creates a new PostgreSQL database connection. |
|
Creates a new SQLite3 database connection. |
|
Copies a table from one database connection to another. |
|
Drops a table from the database. |
|
Executes an SQL query on the database. |
|
Executes an SQL query on the database and returns the result as a pandas dataframe. |
|
Lists the colnames of a table held in the database. |
Returns a list handles to all connections that are currently active on the engine. |
|
|
Lists all tables and views currently held in the database. |
|
Reads a CSV file into the database. |
|
Reads a list of CSV files located in an S3 bucket. |
|
Sniffs a list of CSV files. |
|
Sniffs a list of CSV files located in an S3 bucket. |
Classes¶
|
A handle to a database connection on the getML engine. |