db

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	Driver string
	DSN    string
	Type   string
}

func NewSession

func NewSession(cfg *config.Database) (*Session, error)

func (*Session) Connect

func (s *Session) Connect() error

func (*Session) Count

func (s *Session) Count(table, where string) (string, error)

func (*Session) Describe

func (s *Session) Describe(table string) (string, error)

func (*Session) Exec

func (s *Session) Exec(query string) (string, error)

func (*Session) Find

func (s *Session) Find(table, id string) (string, error)

func (*Session) Tables

func (s *Session) Tables() (string, error)

Jump to

Keyboard shortcuts

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