Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add database create and drop commands #371

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

DataDaoDe
Copy link

@DataDaoDe DataDaoDe commented Jan 27, 2025

Description

This code adds two generic database commands, create and drop for creating an new database and dropping an existing one respectively. It was briefly discussed some here: #365 . A lot of the code was heavily inspired from SQLAlechemy Utils database.py and adapted for the advanced-alchemy use case.

Currently, it still needs integration testing, so far I've only tested it locally with sqlite.

Closes

Copy link

Documentation preview will be available shortly at https://litestar-org.github.io/advanced-alchemy-docs-preview/371

@cofin
Copy link
Member

cofin commented Jan 28, 2025

@DataDaoDe you may hit a wall on some of these engines (maybe Cockroach and Spanner, specifically). Let's just highlight these places so we c an see how many of them there are.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants