engagement

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

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

Go to latest
Published: Dec 13, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(src, dst string) error

Types

type DbWrapper

type DbWrapper struct {
	Db    *sql.DB
	Mutex sync.RWMutex
}

func Open

func Open(path string) (*DbWrapper, error)

func (*DbWrapper) Close

func (d *DbWrapper) Close()

func (*DbWrapper) Exec

func (d *DbWrapper) Exec(query string, args ...any) error

func (*DbWrapper) ExecIndex

func (d *DbWrapper) ExecIndex(query string, args ...any) (int, error)

func (*DbWrapper) Query

func (d *DbWrapper) Query(query string, args ...any) (*sql.Rows, error)

func (*DbWrapper) QueryRow

func (d *DbWrapper) QueryRow(query string, args ...any) *sql.Row

Jump to

Keyboard shortcuts

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