dnaoracle

package
v0.0.0-...-e40b660 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BigFloat reflect.Type = reflect.TypeOf(b2)
View Source
var ErrNoColumns error = errors.New("No columns")
View Source
var ErrNoStmtForRule error = errors.New("No prepared statements for this rule")
View Source
var ErrNoStmtForTable error = errors.New("No prepared statements for this table")
View Source
var ErrSyntax error = errors.New("Syntax error")
View Source
var ErrUnknownFunc error = errors.New("Unknown function")
View Source
var ErrUnsupportedClause error = errors.New("Unsupported clause")

var tmFmt map[string]string var functions map[string]fnSpec

View Source
var ErrUnsupportedType error = errors.New("Unsupported type")

Functions

This section is empty.

Types

type Driver

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

func New

func New(db *go_ora.Connection, use_quotes bool) *Driver

func (*Driver) BindParameter

func (drv *Driver) BindParameter(tabName string, at dna.At) ([]driver.NamedValue, error)

func (*Driver) Close

func (drv *Driver) Close() error

func (*Driver) ColumnSpecs

func (drv *Driver) ColumnSpecs(fldList []dna.FieldSpec, pkIndex int) (string, []int)

func (*Driver) CreateTable

func (drv *Driver) CreateTable(tabName string, fieldSpecs []dna.FieldSpec) error

func (*Driver) Delete

func (drv *Driver) Delete(tabName string, at dna.At) error

func (*Driver) Exists

func (drv *Driver) Exists(tabName string) bool

func (*Driver) Insert

func (drv *Driver) Insert(tabName string, pk driver.NamedValue, parms []driver.NamedValue) (dna.PK, error)

func (*Driver) PKName

func (drv *Driver) PKName() string

func (*Driver) Prepare

func (drv *Driver) Prepare(stmtSpec *dna.StmtSpec) error

func (*Driver) Select

func (drv *Driver) Select(tabName string, at dna.At, fn func(dna.Scanner) error) error

func (*Driver) Update

func (drv *Driver) Update(tabName string, pk driver.NamedValue, parms []driver.NamedValue) error

type GooseG

type GooseG struct {
	Init  goose.Alert
	Query goose.Alert
}
var Goose GooseG = GooseG{
	Init:  goose.Alert(2),
	Query: goose.Alert(2),
}

type Scanner

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

func (*Scanner) Scan

func (s *Scanner) Scan(parms ...interface{}) error

type Stmt

type Stmt struct {
	go_ora.Stmt
	SQL string
}

Jump to

Keyboard shortcuts

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