Skip to content

Releases

v0.1.1

Choose a tag to compare

@LouisRiverstone LouisRiverstone released this 12 Nov 10:24
6078fad

Documentation-only release: no code changes since v0.1.0.

  • The docs now describe the tagged releases (@latest resolves to the newest release) instead of saying there are none.

  • Version picker in the docs: the main address shows the latest release, /next/ shows main, and each release has its own /vX.Y.Z/ copy.

    go get github.com/LouisRiverstone/migro@v0.1.1

v0.1.0

Choose a tag to compare

@LouisRiverstone LouisRiverstone released this 12 Nov 10:08
f7fd691

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) with migration:*, db:*, model:* and make:* commands.
  • Strict mode, query log and dbtest assertions 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.

Docs: https://louisriverstone.github.io/migro/