database

package
v0.0.0-...-c8d874c Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	// contains filtered or unexported fields
}

func New

func New(dataSourceName string, logger *slog.Logger) Connection

func (*Connection) Close

func (connection *Connection) Close() error

func (*Connection) Execute

func (connection *Connection) Execute(query string, args ...any) (sql.Result, error)

func (*Connection) Open

func (connection *Connection) Open() error

func (*Connection) Query

func (connection *Connection) Query(query string) (*sql.Rows, error)

func (*Connection) Seed

func (connection *Connection) Seed() error

Jump to

Keyboard shortcuts

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