Skip to content
This repository has been archived by the owner on Mar 15, 2020. It is now read-only.

CLI-driven database management #5

Closed
florimondmanca opened this issue Nov 20, 2018 · 0 comments
Closed

CLI-driven database management #5

florimondmanca opened this issue Nov 20, 2018 · 0 comments
Labels
abandoned We won't go any further on this enhancement New feature or improvement of an existing one

Comments

@florimondmanca
Copy link
Member

Related to #4

I really like how Django allows you to manage databases through its management command system. Ideally, I would like databases to be managed through the Bocadillo CLI, with commands such as:

# Initialize the Bocadillo app for databases, creating files or asking for information as necessary
boca init:db [<backend: (sqlite|postgres|mysql)>]

# Apply all unapplied migrations
boca migrate

# Apply a specific migration (perhaps an older one, meaning rolling back)
boca migrate <migration_number>

# Generate a migration script
boca migrations:create [<name>] [--table <table>]

# See applied/unapplied migrations
boca migrations:show

The Orator ORM provides similar management commands, so perhaps it could be an inspiration.

@florimondmanca florimondmanca added the enhancement New feature or improvement of an existing one label Nov 20, 2018
@florimondmanca florimondmanca added the abandoned We won't go any further on this label Jan 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
abandoned We won't go any further on this enhancement New feature or improvement of an existing one
Projects
None yet
Development

No branches or pull requests

1 participant