migrations

package
v0.0.0-...-e0046dd Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package migrations stores migrations for databases

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MigrateDatabase

func MigrateDatabase(_ context.Context, driver string, dsn string, handler slog.Handler) (*sql.DB, error)

MigrateDatabase migrates the database of type dbType using the provided db Caller is responsible for closing the db connection after TODO: Don't know how I feel about returning the db here but it works for now

Types

This section is empty.

Directories

Path Synopsis
Package sqlite3 contains an implementation of the go-migrate database.Driver interface using a pure go sqlite3 driver this is almost entirely a copy/paste from the upstream sqlite3 driver swapping underlying drivers
Package sqlite3 contains an implementation of the go-migrate database.Driver interface using a pure go sqlite3 driver this is almost entirely a copy/paste from the upstream sqlite3 driver swapping underlying drivers

Jump to

Keyboard shortcuts

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