db

package
v0.0.0-...-c66872d Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDuplicateDomain = errors.New("domain already exists")
	ErrBusy            = errors.New("database is busy at the moment. try again later")
)

Functions

func ExecPragmas

func ExecPragmas(ctx context.Context, db *sql.DB) error

func InsertDomain

func InsertDomain(ctx context.Context, db *sql.DB, domain string, userID int64) error

Types

This section is empty.

Directories

Path Synopsis
gen
This file is intended only to export FS variable due to the current limitation of go:embed directive, which does not support paths with '..' or '.'.
This file is intended only to export FS variable due to the current limitation of go:embed directive, which does not support paths with '..' or '.'.

Jump to

Keyboard shortcuts

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