Documentation
¶
Overview ¶
Package ncruces provides a Zstandard VFS adapter for ncruces/go-sqlite3. This adapter enables read-only access to Zstandard-compressed SQLite databases using the pure Go WASM-based ncruces/go-sqlite3 driver.
Usage:
import _ "github.com/paulstuart/sqlitezstd/driver/ncruces"
db, err := sql.Open("sqlite3", "file:database.sqlite.zst?vfs=zstd")
Index ¶
- type ZstdFile
- func (z *ZstdFile) CheckReservedLock() (bool, error)
- func (z *ZstdFile) Close() error
- func (z *ZstdFile) DeviceCharacteristics() vfs.DeviceCharacteristic
- func (z *ZstdFile) Lock(elock vfs.LockLevel) error
- func (z *ZstdFile) ReadAt(p []byte, off int64) (int, error)
- func (z *ZstdFile) SectorSize() int
- func (z *ZstdFile) Size() (int64, error)
- func (z *ZstdFile) Sync(flag vfs.SyncFlag) error
- func (z *ZstdFile) Truncate(size int64) error
- func (z *ZstdFile) Unlock(elock vfs.LockLevel) error
- func (z *ZstdFile) WriteAt(p []byte, off int64) (int, error)
- type ZstdVFS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ZstdFile ¶
type ZstdFile struct {
// contains filtered or unexported fields
}
ZstdFile represents an open Zstandard compressed database file for ncruces driver.
func (*ZstdFile) CheckReservedLock ¶
func (*ZstdFile) DeviceCharacteristics ¶
func (z *ZstdFile) DeviceCharacteristics() vfs.DeviceCharacteristic
func (*ZstdFile) SectorSize ¶
type ZstdVFS ¶
type ZstdVFS struct{}
ZstdVFS implements the VFS interface for Zstandard compressed databases.
func (*ZstdVFS) Access ¶
Access checks whether a file exists and can be accessed with the specified permissions.
func (*ZstdVFS) FullPathname ¶
FullPathname returns the full pathname of a file.
Click to show internal directories.
Click to hide internal directories.