Documentation ¶
Index ¶
- Variables
- func GetFile(fd int) (file *os.File)
- func GoFileClose(fd C.int) int
- func GoFileFileSize(fd C.int) (rv int, size C.long)
- func GoFileRead(fd C.int, dst *C.char, n C.int, offset C.long) (rv int)
- func GoFileWrite(fd C.int, src *C.char, n C.int, offset C.long) (rv int)
- func GoVFSAccess(filename *C.char, flags C.int) (rv int)
- func GoVFSCurrentTimeInt64() (now int64)
- func GoVFSDelete(filename *C.char, syncDir C.int) (rv int)
- func GoVFSOpen(filename *C.char, flags C.int) (fd int)
- func Version() string
- type Conn
- type Errno
- type Stmt
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrError os.Error = Errno(1) // /* SQL error or missing database */ ErrInternal os.Error = Errno(2) // /* Internal logic error in SQLite */ ErrPerm os.Error = Errno(3) // /* Access permission denied */ ErrAbort os.Error = Errno(4) // /* Callback routine requested an abort */ ErrBusy os.Error = Errno(5) // /* The database file is locked */ ErrLocked os.Error = Errno(6) // /* A table in the database is locked */ ErrNoMem os.Error = Errno(7) // /* A malloc() failed */ ErrReadOnly os.Error = Errno(8) // /* Attempt to write a readonly database */ ErrInterrupt os.Error = Errno(9) // /* Operation terminated by sqlite3_interrupt()*/ ErrIOErr os.Error = Errno(10) // /* Some kind of disk I/O error occurred */ ErrCorrupt os.Error = Errno(11) // /* The database disk image is malformed */ ErrFull os.Error = Errno(13) // /* Insertion failed because database is full */ ErrCantOpen os.Error = Errno(14) // /* Unable to open the database file */ ErrEmpty os.Error = Errno(16) // /* Database is empty */ ErrSchema os.Error = Errno(17) // /* The database schema changed */ ErrTooBig os.Error = Errno(18) // /* String or BLOB exceeds size limit */ ErrConstraint os.Error = Errno(19) // /* Abort due to constraint violation */ ErrMismatch os.Error = Errno(20) // /* Data type mismatch */ ErrMisuse os.Error = Errno(21) // /* Library used incorrectly */ ErrNolfs os.Error = Errno(22) // /* Uses OS features not supported on host */ ErrAuth os.Error = Errno(23) // /* Authorization denied */ ErrFormat os.Error = Errno(24) // /* Auxiliary database format error */ ErrRange os.Error = Errno(25) // /* 2nd parameter to sqlite3_bind out of range */ ErrNotDB os.Error = Errno(26) // /* File opened that is not a database file */ Row = Errno(100) // /* sqlite3_step() has another row ready */ Done = Errno(101) // /* sqlite3_step() has finished executing */ )
Functions ¶
func GoFileFileSize ¶
return[0]: 0 on success and -1 on error. return[1]: size
func GoFileRead ¶
Returns SQLite error code to be returned by xRead:
SQLITE_OK: read n bytes SQLITE_IOERR_READ: got error while reading SQLITE_IOERR_SHORT_READ: read fewer than n bytes; rest will be zeroed
func GoFileWrite ¶
Returns SQLite error code to be returned by xWrite:
SQLITE_OK: wrote n bytes SQLITE_IOERR_WRITE: got error while writing SQLITE_FULL: partial write
func GoVFSCurrentTimeInt64 ¶
func GoVFSCurrentTimeInt64() (now int64)
func GoVFSDelete ¶
Returns SQLite error code to be returned by xWrite:
SQLITE_OK: deleted the file SQLITE_IOERR_DELETE: failed to delete SQLITE_IOERR_DIR_FSYNC: failed to fsync dir after deleting
Types ¶
Click to show internal directories.
Click to hide internal directories.