Package migration is a Go package for generating and finding PostgreSQL database migrations.
https://code.soquee.net/migration/
- Go 100%
This removes the split between Postgres and Sqlite by just doing our own sanitization of input identifiers and by removing Postgres and Sqlite versions of the setup query in favor of just using the sqlite version, which should be compatible with both anyways. Signed-off-by: Sam Whited <sam@samwhited.com> |
||
|---|---|---|
| .builds | ||
| docs | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| migration.go | ||
| migration_test.go | ||
| README.md | ||
| sanitize.go | ||
| setup.go | ||
migration
The migration package provides a way to generate, list, and apply PostgreSQL or Sqlite3 database migrations. The package can be imported like so:
import (
"code.soquee.net/migration"
)
License
The package may be used under the terms of the BSD 2-Clause License a copy of
which may be found in the LICENSE file.
Unless you explicitly state otherwise, any contribution submitted for inclusion in the work by you shall be licensed as above, without any additional terms or conditions.