Metadata-Version: 2.1
Name: py-db-migrate
Version: 0.3.1
Summary: The CLI application for managing SQL migrations.
Home-page: https://github.com/akemalyildirim1/py-db-migrate
Keywords: psql,sql,migration,typer,python
Author: akemalyildirim1
Author-email: akemalyildirim1@gmail.com
Requires-Python: >=3.11,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: aiofiles (>=23.2.1,<24.0.0)
Requires-Dist: asyncpg (>=0.28.0,<0.29.0)
Requires-Dist: overrides (>=7.4.0,<8.0.0)
Requires-Dist: pydantic (>=2.3.0,<3.0.0)
Requires-Dist: pypika (>=0.48.9,<0.49.0)
Requires-Dist: pyyaml (>=6.0.1,<7.0.0)
Requires-Dist: typer[all] (>=0.9.0,<0.10.0)
Project-URL: Issue tracker, https://github.com/akemalyildirim1/py-db-migrate/issues
Project-URL: Repository, https://github.com/akemalyildirim1/py-db-migrate
Description-Content-Type: text/markdown

# `py-db-migrate`

CLI migration tool for python.

**Usage**:

```console
$ py-db-migrate [OPTIONS] COMMAND [ARGS]...
```

**Options**:

* `--install-completion`: Install completion for the current shell.
* `--show-completion`: Show completion for the current shell, to copy it or customize the installation.
* `--help`: Show this message and exit.

**Commands**:

* `create`: Create a new sql file.
* `down`: Delete the latest migration file by using...
* `init`: Create an initial configuration file.
* `start`: Create an initial configuration file.
* `up`: Run the new migration files.

## `py-db-migrate create`

Create a new sql file.

**Usage**:

```console
$ py-db-migrate create [OPTIONS] NAME
```

**Arguments**:

* `NAME`: [required]

**Options**:

* `--help`: Show this message and exit.

## `py-db-migrate down`

Delete the latest migration file by using down file.

**Usage**:

```console
$ py-db-migrate down [OPTIONS]
```

**Options**:

* `--help`: Show this message and exit.

## `py-db-migrate init`

Create an initial configuration file.

You need to update this configuration file.

**Usage**:

```console
$ py-db-migrate init [OPTIONS]
```

**Options**:

* `--help`: Show this message and exit.

## `py-db-migrate start`

Create an initial configuration file.

You need to update this configuration file.

**Usage**:

```console
$ py-db-migrate start [OPTIONS]
```

**Options**:

* `--help`: Show this message and exit.

## `py-db-migrate up`

Run the new migration files.

**Usage**:

```console
$ py-db-migrate up [OPTIONS]
```

**Options**:

* `--help`: Show this message and exit.

