Documentation ¶
Overview ¶
Package sqlitefile provides bytes buffers backed by a temporary SQLite table.
Index ¶
- type Buffer
- func (bb *Buffer) Cap() (n int64)
- func (bb *Buffer) Close() error
- func (bb *Buffer) Len() (n int64)
- func (bb *Buffer) Read(p []byte) (n int, err error)
- func (bb *Buffer) ReadByte() (byte, error)
- func (bb *Buffer) Reset()
- func (bb *Buffer) UnreadByte() error
- func (bb *Buffer) Write(p []byte) (n int, err error)
- func (bb *Buffer) WriteByte(c byte) error
- func (bb *Buffer) WriteString(p string) (n int, err error)
- type File
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
A Buffer is a variable-sized bytes buffer backed by SQLite blobs.
The bytes are broken into pages, with the first and last pages stored in memory, and intermediate pages loaded into blobs. Unlike a single SQLite blob, a Buffer can grow beyond its initial size. The blobs are allocated in a temporary table.
A Buffer is very similar to a bytes.Buffer.
func NewBufferSize ¶
NewBufferSize creates a Buffer with a specified page size.
func (*Buffer) UnreadByte ¶
type File ¶
File is a readable, writable, and seekable series of temporary SQLite blobs.
func NewFileSize ¶
Click to show internal directories.
Click to hide internal directories.