This repository was archived by the owner on Mar 19, 2026. It is now read-only.
Releases: prefect-archive/prefect-sqlalchemy
Releases · prefect-archive/prefect-sqlalchemy
v0.4.0
v0.3.2
What's Changed
- Update Logo URLs by @zzstoatzz in #68
New Contributors
- @zzstoatzz made their first contribution in #68
Full Changelog: v0.3.1...v0.3.2
v0.3.1
What's Changed
- 'Update the pin on
prefectversion' by @urimandujano in #66 - Bumps build's python version by @urimandujano in #67
New Contributors
- @urimandujano made their first contribution in #66
Full Changelog: v0.3.0...v0.3.1
v0.3.0
What's Changed
- Update CODEOWNERS to Open Source GH team by @desertaxle in #58
- Conditional imports to support operating with
pydantic>2installed by @chrisguidry in #64
New Contributors
- @chrisguidry made their first contribution in #64
Full Changelog: v0.2.4...v0.3.0
v0.2.4
v0.2.3
v0.2.2
0.2.2
Released on December 30th, 2022.
This release introduced a new SqlAlchmeyConnector block which allows users to both store credentials for their database, and perform SQL queries and operations against their database!
Here's an example of how to use this new block!
from prefect_sqlalchemy import SqlAlchemyConnector, SyncDriver, ConnectionComponents
with SqlAlchemyConnector(
connection_info=ConnectionComponents(
driver=SyncDriver.SQLITE_PYSQLITE,
database="my.db"
),
) as database_credentials:
database_credentials.execute(
"CREATE TABLE IF NOT EXISTS customers (name varchar, address varchar);"
)
database_credentials.execute(
"INSERT INTO customers (name, address) VALUES (:name, :address);",
parameters={"name": "Marvin", "address": "Highway 42"},
)
database_credentials.execute_many(
"INSERT INTO customers (name, address) VALUES (:name, :address);",
seq_of_parameters=[
{"name": "Ford", "address": "Highway 42"},
{"name": "Unknown", "address": "Highway 42"},
],
)
# Repeated fetch* calls using the same operation will skip re-executing and instead return the next set of results
print(database_credentials.fetch_many("SELECT * FROM customers", size=2))
print(database_credentials.fetch_one("SELECT * FROM customers"))Added
Deprecated
DatabaseCredentialsand all tasks inprefect_sqlalchemy.database, in favor ofSqlAlchemyConnector- #35