sqlmodule

package
v1.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	lang.Base
	// contains filtered or unexported fields
}

func NewDB

func NewDB(driver, dsn string) (*DB, error)

func (*DB) Copy

func (db *DB) Copy() lang.Object

func (*DB) Method

func (db *DB) Method(name string) lang.Method

func (*DB) Methods

func (db *DB) Methods() []string

func (*DB) SetVariable

func (db *DB) SetVariable(_ string, _ lang.Object) error

func (*DB) String

func (db *DB) String() string

func (*DB) Type

func (db *DB) Type() lang.ObjType

func (*DB) TypeString

func (*DB) TypeString() string

func (*DB) Value

func (db *DB) Value() any

func (*DB) Variable

func (db *DB) Variable(variable string) lang.Object

func (*DB) Variables

func (db *DB) Variables() []string

type SQL

type SQL struct{}

func New

func New() *SQL

func (*SQL) Methods

func (s *SQL) Methods() map[string]lang.Method

func (*SQL) Namespace

func (*SQL) Namespace() string

func (*SQL) Objects

func (s *SQL) Objects() map[string]lang.Object

type Statement

type Statement struct {
	lang.Base
	// contains filtered or unexported fields
}

Statement represents a prepared statement

func (*Statement) Copy

func (s *Statement) Copy() lang.Object

func (*Statement) Method

func (s *Statement) Method(name string) lang.Method

func (*Statement) Methods

func (s *Statement) Methods() []string

func (*Statement) SetVariable

func (s *Statement) SetVariable(_ string, _ lang.Object) error

func (*Statement) String

func (s *Statement) String() string

func (*Statement) Type

func (s *Statement) Type() lang.ObjType

func (*Statement) TypeString

func (*Statement) TypeString() string

func (*Statement) Value

func (s *Statement) Value() any

func (*Statement) Variable

func (s *Statement) Variable(variable string) lang.Object

func (*Statement) Variables

func (s *Statement) Variables() []string

type Transaction

type Transaction struct {
	lang.Base
	// contains filtered or unexported fields
}

Transaction represents a database transaction

func (*Transaction) Copy

func (t *Transaction) Copy() lang.Object

func (*Transaction) Method

func (t *Transaction) Method(name string) lang.Method

func (*Transaction) Methods

func (t *Transaction) Methods() []string

func (*Transaction) SetVariable

func (t *Transaction) SetVariable(_ string, _ lang.Object) error

func (*Transaction) String

func (t *Transaction) String() string

func (*Transaction) Type

func (t *Transaction) Type() lang.ObjType

func (*Transaction) TypeString

func (*Transaction) TypeString() string

func (*Transaction) Value

func (t *Transaction) Value() any

func (*Transaction) Variable

func (t *Transaction) Variable(variable string) lang.Object

func (*Transaction) Variables

func (t *Transaction) Variables() []string

Jump to

Keyboard shortcuts

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