execute

getml.database.execute(query, conn=None)

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.

Parameters
  • 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.