godb

package module
v0.0.0-...-b841a16 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

README

Open in DevPod!

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute[T any](stmt Statement, record T) ([]T, error)

Types

type DB

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

func Open

func Open(adapter adapters.Adapter, dataSourceName string) (*DB, error)

func (*DB) Close

func (db *DB) Close() error

func (*DB) Ping

func (db *DB) Ping() bool

func (*DB) Select

func (db *DB) Select() *selectStatement

Create Statement Struct

type Join

type Join struct {
	JoinType
	// contains filtered or unexported fields
}

type JoinType

type JoinType int
const (
	InnerJoin JoinType = iota
	LeftJoin
	RightJoin
	OuterJoin
)

func (JoinType) String

func (j JoinType) String() string

type Statement

type Statement interface {
	DB() *sql.DB
	// contains filtered or unexported methods
}

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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