vtc

package
v0.0.0-...-bc1d458 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: BSD-2-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Ok         = iota // Successful result
	Error             // SQL error or missing database
	Internal          // Internal logic error in SQLite
	Perm              // Access permission denied
	Abort             // Callback routine requested an abort
	Busy              // The database file is locked
	Locked            // A table in the database is locked
	NoMem             // A malloc() failed
	ReadOnly          // Attempt to write a readonly database
	Interrupt         // Operation terminated by sqlite3_interrupt()
	IoErr             // Some kind of disk I/O error occurred
	Corrupt           // The database disk image is malformed
	NotFound          // NOT USED. Table or record not found
	Full              // Insertion failed because database is full
	CantOpen          // Unable to open the database file
	Protocol          // NOT USED. Database lock protocol error
	Empty             // Database is empty
	Schema            // The database schema changed
	TooBig            // String or BLOB exceeds size limit
	Constraint        // Abort due to constraint violation
	Mismatch          // Data type mismatch
	Misuse            // Library used incorrectly
	NoLfs             // Uses OS features not supported on host
	Auth              // Authorization denied
	Format            // Auxiliary database format error
	Range             // 2nd parameter to sqlite3_bind out of range
	NotADb            // File opened that is not a database file
	StatusRow  = 100  // sqlite3_step() has another row ready
	StatusDone = 101  // sqlite3_step() has finished executing
)

Variables

View Source
var (
	DatabaseHeader  = []byte{0x53, 0x51, 0x4c, 0x69, 0x74, 0x65, 0x20, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x20, 0x33, 0x00}
	ValueTypeString = [6]string{"Null", "Int", "Float", "Text", "Blob"}
)

Functions

This section is empty.

Types

type ValueType

type ValueType uint8
const (
	Null  ValueType = iota // 0
	Int                    // 1
	Float                  // 2
	Text                   // 3
	Blob                   // 4
	Bool
)

Jump to

Keyboard shortcuts

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