# SQLite Tasks
Verified by Prefect
These tasks have been tested and verified by Prefect.
# SQLiteQuery
Task for executing a single query against a sqlite3 database; returns the result (if any) from the query.
Args:
db (str, optional)
: the location of the database (.db) filequery (str, optional)
: the optional default query to execute at runtime; can also be provided as a keyword torun
, which takes precedence over this default. Note that a query should consist of a single SQL statement.data (tuple, optional)
: values to use whenquery
is a parametrized string. See https://docs.python.org/3/library/sqlite3.html for more details.**kwargs (optional)
: additional keyword arguments to pass to the standard Task initalization
methods: |
---|
prefect.tasks.database.sqlite.SQLiteQuery.run (db=None, query=None, data=())[source] |
Args:
|
# SQLiteScript
Task for executing a SQL script against a sqlite3 database; does not return any values, but useful for creating tables and inserting values into the tables.
Args:
db (str, optional)
: the location of the database (.db) filescript (str, optional)
: the optional default script string to render at runtime; can also be provided as a keyword torun
, which takes precedence over this default.**kwargs (optional)
: additional keyword arguments to pass to the standard Task initialization
methods: |
---|
prefect.tasks.database.sqlite.SQLiteScript.run (db=None, script=None)[source] |
Args:
|
This documentation was auto-generated from commit bd9182e
on July 31, 2024 at 18:02 UTC