pgsql

package
v0.0.0-...-04b4601 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Driver = "postgres"

Driver - fot now we only support postgres

Variables

This section is empty.

Functions

func Migrate

func Migrate(db *sql.DB) error

Migrate performs database migrations using the provided *sql.DB connection.

func New

func New(connStr string, skipMigration bool) *sql.DB

New creates a new database connection using the dbUrl It returns the *sql.DB object representing the connection.

Types

This section is empty.

Jump to

Keyboard shortcuts

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