Repository navigation
Releases
v0.1.1
Documentation-only release: no code changes since v0.1.0.
-
The docs now describe the tagged releases (
@latestresolves to the newest release) instead of saying there are none. -
Version picker in the docs: the main address shows the latest release,
/next/showsmain, and each release has its own/vX.Y.Z/copy.go get github.com/LouisRiverstone/migro@v0.1.1
v0.1.0
First tagged release of migro: Eloquent and Lucid style models, a Knex-style schema builder, Laravel-style migrations and seeders, on top of GORM.
Install
go get github.com/LouisRiverstone/migro@v0.1.0
go install github.com/LouisRiverstone/migro/cmd/migro@v0.1.0
What is in it
- Models with instance methods (Save, Delete, Restore, Touch), dirty tracking, casts, scopes, resources, collections, observers and events. Integer, UUID and ULID keys.
- Relations: has one/many, belongs to, many to many, polymorphic, has-through, ofMany, eager loading and relation aggregates.
- Query builder extras: JSON, date and full-text wheres, union, locks, cursor pagination, lazy iteration, Upsert.
- Migrations, seeders and factories; schema dump built from the migrations; a CLI (
migro) withmigration:*,db:*,model:*andmake:*commands. - Strict mode, query log and
dbtestassertions for tests. - Read replicas with sticky reads, named connections (
Manager) and application-level sharding.
Status
This is a 0.x release: the API may still change between minor versions.
Run against live servers in CI: SQLite, PostgreSQL, MySQL. CockroachDB, Redshift, MariaDB, SQL Server and Oracle are unit-tested and their SQL is checked by rendering tests, but not verified against a live server (this includes the SQL Server and Oracle MERGE used by Upsert). Full-text search works on MySQL and PostgreSQL only.