{"repo":"akfaiz/migris","free":true,"listed":false,"github":"https://github.com/akfaiz/migris","clone":"git clone https://github.com/akfaiz/migris.git","description":"Database migration library for Go with fluent schema builder and multi-database support","language":"Go","stars":10,"topics":["database","go","migrations","hacktoberfest","go-migration"],"license":"MIT","category":"databases-storage","readme_excerpt":"Migris Migris is a database migration library for Go, inspired by Laravel's migrations. It combines the power of pressly/goose with a fluent schema builder, making migrations easy to write, run, and maintain. Features - Migration management - Run up, down, reset, status, and create operations - Dry-run mode - Preview migrations without executing them to see generated SQL - Fluent schema builder - Laravel-inspired API for defining database schemas - Multi-database support - Works with PostgreSQL, MySQL, MariaDB, and SQLite3 - Transaction safety - All migrations run within database transactions - Native Go integration - No external CLI tools required Installation Quick Start Creating Migrations Define migrations using the fluent schema builder API: Running Migrations For a complete stdlib-only example, see examples/basic. For quick setup with a CLI framework, use the helpers below. CLI Helpers For simpler CLI integration, use the pre-built CLI helpers: Using urfave/cli Using Cobra Both CLI helpers support all migration commands: create , up , up-to , down , down-to , reset , status . The --dry-run flag is available per-command. AllowMissing in Config applies to all run operations. Schema Builder API The schema builder provides a fluent interface for defining database schemas: Options Migris uses two distinct option types: MigrisOption — constructor options Passed to New() to configure the migrator instance: Option Description ----------------------- ----------------------------","default_branch":null,"files":null,"tree":[],"storefront":"/r/akfaiz","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/akfaiz/migris/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}