frontbase

package module
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 10 Imported by: 0

README

A database/sql driver for FrontBase

This package is a database/sql driver for the FrontBase database.

Todo

  • Proper test suite for the main driver.
    • select all supported types, including NULL.
    • insert all supported types, including NULL.
    • cast(c as character) on DECIMAL/REAL columns for full precision.
    • Custom type for encoding DECIMAL/REAL with correct precision? (I think I've seen custom types in postgre for things like arrays; is this a solution?)
  • Support context cancellation where possible.
  • Pass the compatibility test suite.
  • Add support for BLOBs.
  • Support comments in the prepared statements SQL parser.
  • Doc: build and use with macOS.
  • Doc: build and use with Docker (and therefore linux).

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

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

func (*Conn) Begin

func (dc *Conn) Begin() (driver.Tx, error)

func (*Conn) BeginTx

func (dc *Conn) BeginTx(ctx context.Context, opts driver.TxOptions) (driver.Tx, error)

func (*Conn) Close

func (dc *Conn) Close() error

func (*Conn) IsValid

func (dc *Conn) IsValid() bool

Validator

func (*Conn) Ping

func (dc *Conn) Ping(ctx context.Context) error

Pinger

func (*Conn) Prepare

func (dc *Conn) Prepare(query string) (driver.Stmt, error)

func (*Conn) PrepareContext

func (dc *Conn) PrepareContext(ctx context.Context, query string) (driver.Stmt, error)

func (*Conn) ResetSession

func (dc *Conn) ResetSession(ctx context.Context) error

SessionResetter

type Connector

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

func (Connector) Close

func (cnct Connector) Close() error

func (Connector) Connect

func (cnct Connector) Connect(context.Context) (driver.Conn, error)

func (Connector) Driver

func (cnct Connector) Driver() *Driver

type Driver

type Driver struct {
}

func (*Driver) Open

func (drv *Driver) Open(name string) (driver.Conn, error)

func (*Driver) OpenConnector

func (drv *Driver) OpenConnector(name string) (Connector, error)

type Rows

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

func (*Rows) Close

func (rows *Rows) Close() error

func (*Rows) Columns

func (rows *Rows) Columns() []string

func (*Rows) Next

func (rows *Rows) Next(dest []driver.Value) error

type Tx

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

func (Tx) Commit

func (tx Tx) Commit() error

func (Tx) Rollback

func (tx Tx) Rollback() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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