package util

Import Path
	github.com/ncruces/go-sqlite3/internal/util (on go.dev)

Dependency Relation
	imports 16 packages, and imported by 4 packages


Package-Level Type Names (total 10)
/* sort by: | */
type ConnKey (struct)
(*ErrorJoiner) Join(errs ...error)
( ErrorString) Error() string ErrorString : error func AssertErr() ErrorString const BadBinaryErr const IsolationErr const NilErr const NoBinaryErr const NoNulErr const NoVFSErr const OffsetErr const OOMErr const RangeErr const TailErr const TimeErr const ValueErr const WhenceErr
Value any ( JSON) Scan(value any) error JSON : database/sql.Scanner
Ptr Ptr_t (*MappedRegion) Unmap() error func MapRegion(ctx context.Context, mod api.Module, f *os.File, offset int64, size int32, readOnly bool) (*MappedRegion, error)
Value any
func AddHandle(ctx context.Context, a any) Ptr_t func DelHandle(ctx context.Context, id Ptr_t) error func GetHandle(ctx context.Context, id Ptr_t) any func Read[T](mod api.Module, ptr Ptr_t) T func Read32[T](mod api.Module, ptr Ptr_t) T func Read64[T](mod api.Module, ptr Ptr_t) T func ReadBool(mod api.Module, ptr Ptr_t) bool func ReadFloat64(mod api.Module, ptr Ptr_t) float64 func ReadString(mod api.Module, ptr Ptr_t, maxlen int64) string func View(mod api.Module, ptr Ptr_t, size int64) []byte func Write[T](mod api.Module, ptr Ptr_t, v T) func Write32[T](mod api.Module, ptr Ptr_t, v T) func Write64[T](mod api.Module, ptr Ptr_t, v T) func WriteBool(mod api.Module, ptr Ptr_t, v bool) func WriteBytes(mod api.Module, ptr Ptr_t, b []byte) func WriteFloat64(mod api.Module, ptr Ptr_t, v float64) func WriteString(mod api.Module, ptr Ptr_t, s string)
type Res_t int32 (basic type)
Type Parameters: E: comparable ( Set[E]) Add(v E) ( Set[E]) Contains(v E) bool
type Stk_t = uint64 (basic type)
Package-Level Functions (total 39)
func AppendNumber(dst []byte, f float64) []byte
Type Parameters: TR: i32 T0: i32
Type Parameters: TR: i32 T0: i32 T1: i32
Type Parameters: TR: i32 T0: i32 T1: i32 T2: i32
Type Parameters: TR: i32 T0: i32 T1: i32 T2: i32 T3: i32
Type Parameters: TR: i32 T0: i32 T1: i32 T2: i32 T3: i32 T4: i32
Type Parameters: TR: i32 T0: i32 T1: i32 T2: i32 T3: i32 T4: i32 T5: i32
Type Parameters: TR: i32 T0: i32 T1: i32 T2: i32 T3: i64
Type Parameters: TR: i32 T0: i32 T1: i64
Type Parameters: T0: i32
Type Parameters: T0: i32 T1: i32 T2: i32
Type Parameters: T0: i32 T1: i32 T2: i32 T3: i32
Type Parameters: T0: i32 T1: i32 T2: i32 T3: i32 T4: i32
Type Parameters: T0: i32 T1: i32 T2: i32 T3: i32 T4: i64
func GCD(m, n int) int
func LCM(m, n int) int
func MapRegion(ctx context.Context, mod api.Module, f *os.File, offset int64, size int32, readOnly bool) (*MappedRegion, error)
Type Parameters: T: i8
Type Parameters: T: i32
Type Parameters: T: i64
func ReadBool(mod api.Module, ptr Ptr_t) bool
func ReadString(mod api.Module, ptr Ptr_t, maxlen int64) string
func View(mod api.Module, ptr Ptr_t, size int64) []byte
Type Parameters: T: i8
Type Parameters: T: i32
Type Parameters: T: i64
func WriteBool(mod api.Module, ptr Ptr_t, v bool)
func WriteBytes(mod api.Module, ptr Ptr_t, b []byte)
func WriteFloat64(mod api.Module, ptr Ptr_t, v float64)
func WriteString(mod api.Module, ptr Ptr_t, s string)
Package-Level Constants (total 123)
https://sqlite.com/rescode.html
https://sqlite.com/rescode.html
const BadBinaryErr ErrorString = "sqlite3: invalid SQLite binary embed/set/loaded"
https://sqlite.com/rescode.html
https://sqlite.com/rescode.html
https://sqlite.com/rescode.html
https://sqlite.com/rescode.html
https://sqlite.com/rescode.html
https://sqlite.com/rescode.html
https://sqlite.com/rescode.html
https://sqlite.com/rescode.html
https://sqlite.com/rescode.html
https://sqlite.com/rescode.html
https://sqlite.com/rescode.html
const IntLen = 4
https://sqlite.com/rescode.html
const IsolationErr ErrorString = "sqlite3: unsupported isolation level"
https://sqlite.com/rescode.html
https://sqlite.com/rescode.html
https://sqlite.com/rescode.html
const NilErr ErrorString = "sqlite3: invalid memory address or null pointer dereference"
const NoBinaryErr ErrorString = "sqlite3: no SQLite binary embed/set/loaded"
https://sqlite.com/rescode.html
https://sqlite.com/rescode.html
const NoNulErr ErrorString = "sqlite3: missing NUL terminator"
https://sqlite.com/rescode.html
https://sqlite.com/rescode.html
https://sqlite.com/rescode.html
const NoVFSErr ErrorString = "sqlite3: no such vfs: "
const OffsetErr ErrorString = "sqlite3: invalid offset"
https://sqlite.com/rescode.html
const OOMErr ErrorString = "sqlite3: out of memory"
https://sqlite.com/rescode.html
https://sqlite.com/rescode.html
const PtrLen = 4
https://sqlite.com/rescode.html
const RangeErr ErrorString = "sqlite3: index out of range"
https://sqlite.com/rescode.html
https://sqlite.com/rescode.html
https://sqlite.com/rescode.html
const TailErr ErrorString = "sqlite3: multiple statements"
const TimeErr ErrorString = "sqlite3: invalid time value"
https://sqlite.com/rescode.html
const ValueErr ErrorString = "sqlite3: unsupported value"
https://sqlite.com/rescode.html
const WhenceErr ErrorString = "sqlite3: invalid whence"