arg

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package arg reads the arguments of the functions of ext/.

Index

Constants

View Source
const MaxLength = 1_000_000_000

MaxLength is SQLITE_MAX_LENGTH, the most bytes SQLite takes in a string or a blob. A function stops building a value longer than that and fails, as SQLite's own would, rather than fill the memory first.

Variables

This section is empty.

Functions

func Bytes

func Bytes(fn string, i int, v driver.Value) (b []byte, null bool, err error)

Bytes is Text for functions that read bytes, without a copy of a blob.

func Text

func Text(fn string, i int, v driver.Value) (s string, null bool, err error)

Text is the text of an argument as SQLite would give it: a string or a blob as it is, an integer in decimal. null is true for NULL. A REAL is refused: SQLite's text of a float has rules of its own that a function could only copy, so the caller writes CAST(x AS TEXT) instead.

Types

This section is empty.

Jump to

Keyboard shortcuts

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