Package migration is a Go package for generating and finding PostgreSQL database migrations. https://code.soquee.net/migration/
Find a file
Sam Whited 459f5355e9
migration: do our own sanitization
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>
2024-12-28 05:47:42 -05:00
.builds .builds: add builds.sr.ht CI configuration 2019-05-27 15:11:29 -05:00
docs docs: cleanup and expand readme and documentation 2023-11-20 15:37:55 -05:00
go.mod migration: do our own sanitization 2024-12-28 05:47:42 -05:00
go.sum migration: do our own sanitization 2024-12-28 05:47:42 -05:00
LICENSE Initial public release 2019-05-26 11:49:55 -05:00
migration.go migration: add sqlite3 support 2024-12-13 16:18:00 -05:00
migration_test.go Use Go 1.16 io/fs and remove deprecated io/ioutil 2021-02-26 10:22:09 -05:00
README.md migration: do our own sanitization 2024-12-28 05:47:42 -05:00
sanitize.go migration: do our own sanitization 2024-12-28 05:47:42 -05:00
setup.go migration: do our own sanitization 2024-12-28 05:47:42 -05:00

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.