interface SQLiteVFS { mxPathName?: number; xAccess(pVfs,
zName,
flags,
pResOut): number | Promise<number>; xCheckReservedLock(fileId,
pResOut): number | Promise<number>; xClose(fileId): number | Promise<number>; xDelete(pVfs,
zName,
syncDir): number | Promise<number>; xDeviceCharacteristics(fileId): number | Promise<number>; xFileControl(fileId,
flags,
pOut): number | Promise<number>; xFileSize(fileId,
pSize64): number | Promise<number>; xLock(fileId,
flags): number | Promise<number>; xOpen(pVfs,
zName,
pFile,
flags,
pOutFlags): number | Promise<number>; xRead(fileId,
pData,
iAmt,
iOffsetLo,
iOffsetHi): number | Promise<number>; xSync(fileId,
flags): number | Promise<number>; xTruncate(fileId,
iSizeLo,
iSizeHi): number | Promise<number>; xUnlock(fileId,
flags): number | Promise<number>; xWrite(fileId,
pData,
iAmt,
iOffsetLo,
iOffsetHi): number | Promise<number>; } Properties
Optional
mxPathName
mxPathName?: number
Methods
xAccess
- xAccess(pVfs, zName, flags, pResOut): number | Promise<number>
Parameters
pVfs: number
zName: number
flags: number
pResOut: number
Returns number | Promise<number>
xCheckReservedLock
- xCheckReservedLock(fileId, pResOut): number | Promise<number>
Parameters
fileId: number
pResOut: number
Returns number | Promise<number>
xClose
- xClose(fileId): number | Promise<number>
Returns number | Promise<number>
xDelete
- xDelete(pVfs, zName, syncDir): number | Promise<number>
Parameters
pVfs: number
zName: number
syncDir: number
Returns number | Promise<number>
xDeviceCharacteristics
- xDeviceCharacteristics(fileId): number | Promise<number>
Returns number | Promise<number>
xFileControl
- xFileControl(fileId, flags, pOut): number | Promise<number>
Parameters
fileId: number
flags: number
pOut: number
Returns number | Promise<number>
xFileSize
- xFileSize(fileId, pSize64): number | Promise<number>
Parameters
fileId: number
pSize64: number
Returns number | Promise<number>
xLock
- xLock(fileId, flags): number | Promise<number>
Parameters
fileId: number
flags: number
Returns number | Promise<number>
xOpen
- xOpen(pVfs, zName, pFile, flags, pOutFlags): number | Promise<number>
Parameters
pVfs: number
zName: number
pFile: number
flags: number
pOutFlags: number
Returns number | Promise<number>
xRead
- xRead(fileId, pData, iAmt, iOffsetLo, iOffsetHi): number | Promise<number>
Parameters
fileId: number
pData: number
iAmt: number
iOffsetLo: number
iOffsetHi: number
Returns number | Promise<number>
xSync
- xSync(fileId, flags): number | Promise<number>
Parameters
fileId: number
flags: number
Returns number | Promise<number>
xTruncate
- xTruncate(fileId, iSizeLo, iSizeHi): number | Promise<number>
Parameters
fileId: number
iSizeLo: number
iSizeHi: any
Returns number | Promise<number>
xUnlock
- xUnlock(fileId, flags): number | Promise<number>
Parameters
fileId: number
flags: number
Returns number | Promise<number>
xWrite
- xWrite(fileId, pData, iAmt, iOffsetLo, iOffsetHi): number | Promise<number>
Parameters
fileId: number
pData: number
iAmt: number
iOffsetLo: number
iOffsetHi: number
Returns number | Promise<number>
SQLite Virtual File System object
Objects with this interface can be passed to SQLiteAPI.vfs_register to define a new filesystem.
There are examples of a synchronous MemoryVFS.js, and asynchronous MemoryAsyncVFS.js and IndexedDbVFS.js.
See