Skip to content

Latest commit

 

History

History

db

Database Support

Dependencies

  1. ent - insane entity mapping tool, definitely not an ORM but kind of an ORM
  2. atlas - Schema generation and migration
  3. entx - Wrapper to interact with the ent

Supported Drivers

  1. postgres
  2. pgx

Local Development

Config Examples

Postgres

  1. Postgres is included in docker/docker-compose-fga.yml and the same instance can be used for development. The following connection string should work when using task docker:all:up
db:
  debug: true
  driver_name: pgx # or `postgres` to use lib/pg instead
  primary_db_source: "postgres://postgres:password@postgres:5432?sslmode=disable"
  run_migrations: true