db

package
v2.18.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2026 License: Apache-2.0 Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

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

Documentation

Overview

Package db provides an embedded filesystem containing all the database migrations

Index

Constants

This section is empty.

Variables

View Source
var GooseMigrationsPG embed.FS

GooseMigrationsPG contain an embedded filesystem with all the goose migration files for postgres

View Source
var Migrations embed.FS

Migrations contain an embedded filesystem with all the sql migration files

View Source
var SeedMigrationsPG embed.FS

SeedMigrationsPG contain an embedded filesystem with all the seed files for postgres

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL