db

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package db defines the database types and functions.

Package db defines the database types and functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewString added in v0.0.6

func NewString(s string) pgtype.Text

NewString returns a new pgtype.Text

func NewTimestamp added in v0.0.6

func NewTimestamp(t time.Time) pgtype.Timestamp

NewTimestamp returns a new pgtype.Timestamp

Types

type MigrationHandler

type MigrationHandler struct {
	*migrate.Migrate
}

func NewMigrationHandler

func NewMigrationHandler() (*MigrationHandler, error)

func (*MigrationHandler) ListMigrations

func (m *MigrationHandler) ListMigrations()

func (*MigrationHandler) MigrationStep

func (m *MigrationHandler) MigrationStep(step int)

func (*MigrationHandler) RunMigrations

func (m *MigrationHandler) RunMigrations() error

func (*MigrationHandler) ViewMigration

func (m *MigrationHandler) ViewMigration(file string) []byte

Directories

Path Synopsis
types
flags
Package flags contains all the bitmask based flags used in the database.
Package flags contains all the bitmask based flags used in the database.

Jump to

Keyboard shortcuts

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