Repository navigation
π v0.1.0 - Initial Release
The first public release of Jone, a Knex-inspired database migration tool for Go.
Features
-
Schema Builder β Fluent API for creating and modifying tables
- Column types:
String,Int,BigInt,Boolean,UUID,Timestamp,JSON,Decimal, and more - Modifiers:
NotNullable(),Unique(),Default(),Primary() - Indexes and foreign keys
- Column types:
-
CLI Commands
jone initβ Initialize projectjone migrate:makeβ Create new migrationjone migrate:latestβ Run all pending migrationsjone migrate:up/downβ Run/rollback single migrationjone migrate:rollbackβ Rollback last batchjone migrate:listβ View migration statusjone versionβ Display version (-vflag)
-
Additional Features
--dry-runflag to preview SQL without executings.Raw()for custom SQL statements- Colored CLI output
- Transaction-wrapped migrations with batch tracking
Supported Databases
- β PostgreSQL
Installation
go install github.com/Grandbusta/jone/cmd/jone@v0.1.0
go get github.com/Grandbusta/jone