sqlargs

package
v0.0.0-...-7cb85a9 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = SQL{}

Default contains default env arguments.

Functions

This section is empty.

Types

type SQL

type SQL struct {
	DSN     string `env:"BOT2_DB_DSN"`
	Migrate bool   `env:"BOT2_DB_MIGRATE"`
}

SQL contains SQL database flags.

func (*SQL) Open

func (args *SQL) Open(ctx context.Context) *sql.DB

Open connects and pings a postgres database.

Jump to

Keyboard shortcuts

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