sqlite3

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: MIT Imports: 5 Imported by: 0

README

The S3DB extension should be used wherever possible, like in the sqlite CLI, or loading into the JVM. But if you're using Go, keep reading.

= Caveats = Go programs must be built with -linkshared in order to use this extension. On Mac, where -linkshared is not available:

go test -v -linkshared
-linkshared not supported on darwin/amd64

the ../mattn module should be used instead. Attempts to use the shared module in a Go program when -linkshared is missed will result in crashes like:

fatal error: bad sweepgen in refill

goroutine 21 [running, locked to thread]:
runtime.throw({0x8e6c74df?, 0xc000165198?})
	/home/foo/sdk/go1.18/src/runtime/panic.go:992 +0x71 fp=0xc000164f20 sp=0xc000164ef0 pc=0x8e035751
runtime.(*mcache).refill(0x542e1d8, 0xb)
	/home/foo/sdk/go1.18/src/runtime/mcache.go:156 +0x1eb fp=0xc000164f58 sp=0xc000164f20 pc=0x8e018f0b
runtime.(*mcache).nextFree(0x542e1d8, 0xb)
	/home/foo/sdk/go1.18/src/runtime/malloc.go:886 +0x85 fp=0xc000164fa0 sp=0xc000164f58 pc=0x8e00ee45
runtime.mallocgc(0x2b, 0x0, 0x0)
	/home/foo/sdk/go1.18/src/runtime/malloc.go:1085 +0x4e5 fp=0xc000165018 sp=0xc000164fa0 pc=0x8e00f4c5
runtime.rawstring(0x2b)
	/home/foo/sdk/go1.18/src/runtime/string.go:273 +0x37 fp=0xc000165068 sp=0xc000165018 pc=0x8e0501f7
runtime.rawstringtmp(0x542e1d8?, 0x10?)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VacuumCursor

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

func (*VacuumCursor) Close

func (vc *VacuumCursor) Close() error

func (*VacuumCursor) Column

func (vc *VacuumCursor) Column(context *sqlite3.SQLiteContext, i int) error

func (*VacuumCursor) EOF

func (vc *VacuumCursor) EOF() bool

func (*VacuumCursor) Filter

func (vc *VacuumCursor) Filter(_ int, idxStr string, values []interface{}) error

func (*VacuumCursor) Next

func (vc *VacuumCursor) Next() error

func (*VacuumCursor) Rowid

func (vc *VacuumCursor) Rowid() (int64, error)

type VacuumModule

type VacuumModule struct{}

func (*VacuumModule) BestIndex

func (*VacuumModule) Connect

func (vm *VacuumModule) Connect(conn *sqlite3.SQLiteConn, args []string) (sqlite3.VTab, error)

func (*VacuumModule) Create

func (vm *VacuumModule) Create(c *sqlite3.SQLiteConn, args []string) (sqlite3.VTab, error)

func (*VacuumModule) Destroy

func (vm *VacuumModule) Destroy() error

func (*VacuumModule) DestroyModule

func (vm *VacuumModule) DestroyModule()

func (*VacuumModule) Disconnect

func (vm *VacuumModule) Disconnect() error

func (*VacuumModule) EponymousOnlyModule

func (vm *VacuumModule) EponymousOnlyModule()

func (*VacuumModule) Open

func (vm *VacuumModule) Open() (sqlite3.VTabCursor, error)

Jump to

Keyboard shortcuts

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