getml.database.execute(query: str, conn: Optional[Connection] = None)[source]

Executes an SQL query on the database.

Please note that this is not meant to return results. If you want to get results, use database.get(…) instead.

query (str):

The SQL query to be executed.

conn (Connection, optional):

The database connection to be used. If you don’t explicitly pass a connection, the engine will use the default connection.