https://github.com/h44z/lightmigrate-mysql
Lightweight database migragtion library for Golang - MySQL / MariaDB driver
https://github.com/h44z/lightmigrate-mysql
database golang mariadb migration mysql
Last synced: 3 months ago
JSON representation
Lightweight database migragtion library for Golang - MySQL / MariaDB driver
- Host: GitHub
- URL: https://github.com/h44z/lightmigrate-mysql
- Owner: h44z
- License: mit
- Created: 2022-01-14T15:13:19.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-14T15:24:24.000Z (over 4 years ago)
- Last Synced: 2025-01-14T14:59:12.917Z (over 1 year ago)
- Topics: database, golang, mariadb, migration, mysql
- Language: Go
- Homepage: https://github.com/h44z/lightmigrate
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# LightMigrate - MySQL/MariaDB migration driver
[](https://codecov.io/gh/h44z/lightmigrate-mysql)
[](https://opensource.org/licenses/MIT)
[](https://pkg.go.dev/github.com/h44z/lightmigrate-mysql/mysql)

[](https://goreportcard.com/report/github.com/h44z/lightmigrate-mysql)


[](https://github.com/h44z/lightmigrate-mysql/releases)
This module is part of the [LightMigrate](https://github.com/h44z/lightmigrate) library.
It provides a migration driver for MySQL or MariaDB.
## Features
* Driver work with MySQL or MariaDB.
* If the database client was initialized with `multiStatements=true`, multiple statements are supported within the migration files.
* [Examples](./examples)
## Configuration Options
Configuration options can be passed to the constructor using the `With` functions.
| Config Value | Defaults | Description |
|-------------------|-------------------|----------------------------------------------------|
| `MigrationsTable` | schema_migrations | Name of the migrations table. |
| `Locking` | true | If database locking should be used. |
| `Logger` | log.Default() | The logger instance that should be used. |
| `VerboseLogging` | false | If set to true, more log messages will be printed. |