vfs

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: BSD-3-Clause Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const (
	FILESEC_OWNER   = 1
	FILESEC_GROUP   = 2
	FILESEC_UUID    = 3
	FILESEC_MODE    = 4
	FILESEC_ACL     = 5
	FILESEC_GRPUUID = 6

	// XXX these are private to the implementation
	FILESEC_ACL_RAW       = 100
	FILESEC_ACL_ALLOCSIZE = 101
)

Variables

View Source
var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */

Functions

func X__darwin_check_fd_set

func X__darwin_check_fd_set(tls *libc.TLS, _a int32, _b uintptr) int32

func X__darwin_fd_clr

func X__darwin_fd_clr(tls *libc.TLS, _fd int32, _p uintptr)

func X__darwin_fd_isset

func X__darwin_fd_isset(tls *libc.TLS, _fd int32, _p uintptr) int32

This inline avoids argument side-effect issues with FD_ISSET()

func X__darwin_fd_set

func X__darwin_fd_set(tls *libc.TLS, _fd int32, _p uintptr)

func Xsqlite3_fsFS

func Xsqlite3_fsFS(tls *libc.TLS, zName uintptr, pAppData uintptr) uintptr

This function returns a pointer to the VFS implemented in this file. To make the VFS available to SQLite:

sqlite3_vfs_register(sqlite3_fsFS(), 0);

Types

type FS

type FS struct {
	// contains filtered or unexported fields
}

FS represents a SQLite read only file system backed by Go's fs.FS.

func New

func New(fs fs.FS) (name string, _ *FS, _ error)

New creates a new sqlite VFS and registers it. If successful, the file system can be used with the URI parameter `?vfs=<returned name>`.

func (*FS) Close

func (f *FS) Close() error

Close unregisters f and releases its resources.

type Fts5ExtensionApi

type Fts5ExtensionApi = Fts5ExtensionApi1 /* sqlite3.h:12266:33 */

type Fts5ExtensionApi1

type Fts5ExtensionApi1 = struct {
	// contains filtered or unexported fields

} /* sqlite3.h:12266:9 */

type Fts5PhraseIter

type Fts5PhraseIter = Fts5PhraseIter1 /* sqlite3.h:12268:31 */

type Fts5PhraseIter1

type Fts5PhraseIter1 = struct {
	// contains filtered or unexported fields

} /* sqlite3.h:12268:9 */

type VFSFile

type VFSFile = VFSFile1 /* vfs.c:154:24 */

When using this VFS, the sqlite3_file* handles that SQLite uses are actually pointers to instances of type VFSFile.

type VFSFile1

type VFSFile1 = struct {
	// contains filtered or unexported fields

} /* vfs.c:154:9 */

When using this VFS, the sqlite3_file* handles that SQLite uses are actually pointers to instances of type VFSFile.

Jump to

Keyboard shortcuts

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