diff --git a/docs/module/db.md b/docs/module/db.md index 09b2be1..4f346c3 100644 --- a/docs/module/db.md +++ b/docs/module/db.md @@ -89,6 +89,8 @@ await wait_for_row_change( ## Creating a database +!!! info "Added in `v2.1`" + [`create_database`](../reference/db.md#fastapi_toolsets.db.create_database) creates a database at a given URL. It connects to *server_url* and issues a `CREATE DATABASE` statement: ```python @@ -103,6 +105,8 @@ For test isolation with automatic cleanup, use [`create_worker_database`](../ref ## Cleaning up tables +!!! info "Added in `v2.1`" + [`cleanup_tables`](../reference/db.md#fastapi_toolsets.db.cleanup_tables) truncates all tables: ```python diff --git a/pyproject.toml b/pyproject.toml index df79e56..4a38aec 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "fastapi-toolsets" -version = "2.0.0" +version = "2.1.0" description = "Production-ready utilities for FastAPI applications" readme = "README.md" license = "MIT" diff --git a/src/fastapi_toolsets/__init__.py b/src/fastapi_toolsets/__init__.py index a98b4d4..b78c8b5 100644 --- a/src/fastapi_toolsets/__init__.py +++ b/src/fastapi_toolsets/__init__.py @@ -21,4 +21,4 @@ Example usage: return Response(data={"user": user.username}, message="Success") """ -__version__ = "2.0.0" +__version__ = "2.1.0" diff --git a/uv.lock b/uv.lock index 55d4a5d..95b7ddd 100644 --- a/uv.lock +++ b/uv.lock @@ -251,7 +251,7 @@ wheels = [ [[package]] name = "fastapi-toolsets" -version = "2.0.0" +version = "2.1.0" source = { editable = "." } dependencies = [ { name = "asyncpg" },