Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/rhashimoto/wa-sqlite
/ functions
Functions
534 in github.com/rhashimoto/wa-sqlite
⨍
Functions
534
◇
Types & classes
69
↓ 155 callers
Method
get
(_, prop)
src/FacadeVFS.js:424
↓ 90 callers
Method
exec
* One-step query execution interface * * The implementation of this function uses {@link row}, which makes a * copy of blobs and returns Big
src/types/index.d.ts:522
↓ 76 callers
Method
jLock
* @param {number} fileId * @param {number} lockType * @returns {Promise<number>}
src/WebLocksMixin.js:49
↓ 56 callers
Method
jUnlock
* @param {number} fileId * @param {number} lockType * @returns {Promise<number>}
src/WebLocksMixin.js:83
↓ 51 callers
Method
close
()
src/types/index.d.ts:40
↓ 50 callers
Method
create
(extras = {})
test/TestContext.js:33
↓ 43 callers
Function
decl
(s)
src/sqlite-api.js:888
↓ 28 callers
Method
setInt32
()
demo/file/service-worker.js:79
↓ 25 callers
Function
verifyStatement
(stmt)
src/sqlite-api.js:90
↓ 23 callers
Method
step
* Evaluate an SQL statement * @see https://www.sqlite.org/c3ref/step.html * @param stmt prepared statement pointer * @returns Promise resolvi
src/types/index.d.ts:747
↓ 22 callers
Method
open_v2
* Opening a new database connection. * * Note that this function differs from the C API in that it * returns the Promise-wrapped database po
src/types/index.d.ts:586
↓ 21 callers
Method
statements
* SQL statement iterator * * This function manages statement compilation by creating an async * iterator that yields a prepared statement ha
src/types/index.d.ts:738
↓ 18 callers
Function
i
(p)
test/api_statements.js:409
↓ 15 callers
Function
check
(fname, result, db = null, allowed = [SQLite.SQLITE_OK])
src/sqlite-api.js:856
↓ 15 callers
Method
column_count
* Get number of columns for a prepared statement * @see https://www.sqlite.org/c3ref/column_blob.html * @param stmt prepared statement pointer
src/types/index.d.ts:393
↓ 15 callers
Method
destroy
(proxy)
test/TestContext.js:65
↓ 15 callers
Function
log
(...args)
demo/file/index.js:228
↓ 15 callers
Method
q
* @param {(stores: Object.<string, IDBObjectStore>) => any} f * @param {'ro'|'rw'} mode * @returns {Promise<any>}
src/examples/IDBBatchAtomicVFS.js:654
↓ 13 callers
Method
#acquire
* @param {LockState} lockState * @param {'gate'|'access'|'reserved'|'hint'} name * @param {LockOptions} options * @returns {Promise<boolean
src/WebLocksMixin.js:378
↓ 13 callers
Method
column_type
* Get column type for a prepared statement * * Note that this type may not match the type declared in `CREATE TABLE`. * @see https://www.sql
src/types/index.d.ts:459
↓ 13 callers
Method
create_function
* Create or redefine SQL functions * * The application data passed is ignored. Use closures instead. * * If any callback function return
src/types/index.d.ts:492
↓ 13 callers
Method
jOpen
* @param {string?} filename * @param {number} pFile * @param {number} flags * @param {DataView} pOutFlags * @returns {number|Promise<n
src/FacadeVFS.js:48
↓ 13 callers
Method
start
(controller)
demo/file/service-worker.js:75
↓ 12 callers
Function
clearAllLocks
()
test/WebLocksMixin.test.js:500
↓ 12 callers
Method
supportsJSPI
()
test/TestContext.js:75
↓ 11 callers
Method
#lock
* Acquire one of the database file internal Web Locks. * @param {File} file * @param {'read'|'write'|'reserved'|'hint'} name * @param {Lock
src/examples/OPFSPermutedVFS.js:798
↓ 11 callers
Method
value_type
* Get type of `sqlite3_value` * @see https://sqlite.org/c3ref/value_blob.html * @param pValue `sqlite3_value` pointer * @returns enumeration
src/types/index.d.ts:841
↓ 10 callers
Function
log
(item)
demo/contention/contention.js:50
↓ 9 callers
Method
column
* Call the appropriate `column_*` function based on the column type * * The type is determined by calling {@link column_type}, which may * n
src/types/index.d.ts:363
↓ 9 callers
Method
getSize
* Returns the number of SQLite files in the file system. * @returns {number}
src/examples/AccessHandlePoolVFS.js:245
↓ 9 callers
Function
log
(s)
demo/SharedService/index.js:59
↓ 9 callers
Function
log
(s)
demo/SharedService-sw/index.js:61
↓ 9 callers
Method
value_text
* Extract a value from `sqlite3_value` * @see https://sqlite.org/c3ref/value_blob.html * @param pValue `sqlite3_value` pointer * @returns val
src/types/index.d.ts:833
↓ 9 callers
Function
vfs_xAccess
(context)
test/vfs_xAccess.js:1
↓ 9 callers
Function
vfs_xClose
(context)
test/vfs_xClose.js:6
↓ 9 callers
Function
vfs_xOpen
(context)
test/vfs_xOpen.js:6
↓ 9 callers
Function
vfs_xRead
(context)
test/vfs_xRead.js:6
↓ 9 callers
Function
vfs_xWrite
(context)
test/vfs_xWrite.js:6
↓ 8 callers
Method
commit_hook
* Register a commit hook * * @see https://www.sqlite.org/c3ref/commit_hook.html * * @param db database pointer * @param callback If a
src/types/index.d.ts:470
↓ 8 callers
Method
isReady
()
src/types/index.d.ts:41
↓ 8 callers
Method
value
* Extract a value from `sqlite3_value` * * This is a convenience function that calls the appropriate `value_*` * function based on its type.
src/types/index.d.ts:781
↓ 8 callers
Method
vfs_register
* Register a new Virtual File System. * * @see https://www.sqlite.org/c3ref/vfs_find.html * @param vfs VFS object * @param makeDefault
src/types/index.d.ts:851
↓ 7 callers
Method
jAccess
* @param {string} filename * @param {number} flags * @param {DataView} pResOut * @returns {number|Promise<number>}
src/FacadeVFS.js:67
↓ 7 callers
Function
verifyDatabase
(db)
src/sqlite-api.js:83
↓ 6 callers
Method
bind_parameter_name
* Get name of bound parameter * * Note that binding indices begin with 1. * @see https://www.sqlite.org/c3ref/bind_parameter_name.html *
src/types/index.d.ts:311
↓ 6 callers
Function
check
(code)
demo/file/index.js:242
↓ 6 callers
Method
column_name
* Get a column name for a prepared statement * @see https://www.sqlite.org/c3ref/column_blob.html * @param stmt prepared statement pointer *
src/types/index.d.ts:429
↓ 6 callers
Method
jClose
* @param {number} pFile * @returns {number|Promise<number>}
src/FacadeVFS.js:97
↓ 5 callers
Method
#lock
* Acquire one of the database file internal Web Locks. * @param {File} file * @param {'write'|'reserved'|'hint'} name * @param {LockOptions
src/examples/IDBMirrorVFS.js:776
↓ 5 callers
Method
#setAssociatedPath
* Set the path on an OPFS file header. * @param accessHandle FileSystemSyncAccessHandle * @param {string} path * @param {number} flags
src/examples/AccessHandlePoolVFS.js:379
↓ 5 callers
Method
column_int
* Extract a column value from a row after a prepared statment {@link step} * @see https://www.sqlite.org/c3ref/column_blob.html * @param stmt pr
src/types/index.d.ts:411
↓ 5 callers
Method
get_autocommit
* Test for autocommit mode * @see https://sqlite.org/c3ref/get_autocommit.html * @param db database pointer * @returns Non-zero if autocommit
src/types/index.d.ts:545
↓ 5 callers
Method
jFileControl
* @param {number} fileId * @param {number} op * @param {DataView} pArg * @returns {number|Promise<number>}
src/WebLocksMixin.js:132
↓ 5 callers
Function
resetCallsCount
()
test/callbacks.test.js:440
↓ 5 callers
Method
row
* Get all column data for a row from a prepared statement step * * This convenience function will return a copy of any blob, unlike * {@l
src/types/index.d.ts:678
↓ 5 callers
Method
sync
* @param {boolean} durable
src/examples/IDBBatchAtomicVFS.js:791
↓ 5 callers
Method
update
()
docs/assets/main.js:5
↓ 5 callers
Method
value_double
* Extract a value from `sqlite3_value` * @see https://sqlite.org/c3ref/value_blob.html * @param pValue `sqlite3_value` pointer * @returns val
src/types/index.d.ts:809
↓ 4 callers
Method
#acceptTx
* @param {File} file * @param {Transaction} message
src/examples/OPFSPermutedVFS.js:892
↓ 4 callers
Method
#makeTypedDataView
* Wrapped DataView for pointer arguments. * Pointers to a single value are passed using DataView. A Proxy * wrapper prevents use of incorrect ty
src/FacadeVFS.js:414
↓ 4 callers
Method
#releaseAccessHandle
* @param {File} file
src/examples/OPFSCoopSyncVFS.js:542
↓ 4 callers
Method
#setView
* @param {File} file * @param {Transaction} tx
src/examples/OPFSPermutedVFS.js:824
↓ 4 callers
Function
WebLocksMixin
src/WebLocksMixin.js:28
↓ 4 callers
Function
adapt
(f)
src/sqlite-api.js:390
↓ 4 callers
Method
bind
* Bind value to prepared statement * * This convenience function calls the appropriate `bind_*` function * based on the type of `value`. Not
src/types/index.d.ts:233
↓ 4 callers
Method
bind_text
* Bind string to prepared statement * * Note that binding indices begin with 1. * @see https://www.sqlite.org/c3ref/bind_blob.html * @par
src/types/index.d.ts:323
↓ 4 callers
Function
check
(code)
demo/file/service-worker.js:117
↓ 4 callers
Method
column_names
* Get names for all columns of a prepared statement * * This is a convenience function that calls {@link column_count} and * {@link column_n
src/types/index.d.ts:439
↓ 4 callers
Function
cvt32x2ToBigInt
* Concatenate 32-bit numbers into a 64-bit (signed) BigInt. * @param {number} lo32 * @param {number} hi32 * @returns {bigint}
src/sqlite-api.js:54
↓ 4 callers
Function
cvtArgs
(_, iAction, p3, p4, p5, p6)
src/sqlite-api.js:621
↓ 4 callers
Function
getPathComponents
* Given a path, return the directory handle and filename. * @param {string} path * @param {boolean} create * @returns {Promise<[FileSystemDirecto
src/examples/OPFSPermutedVFS.js:1173
↓ 4 callers
Function
getPathComponents
* @param {string} pathname * @param {boolean} create * @returns {Promise<[FileSystemDirectoryHandle, string]>}
src/examples/OPFSAdaptiveVFS.js:16
↓ 4 callers
Function
getPathComponents
* @param {string} pathname * @param {boolean} create * @returns {Promise<[FileSystemDirectoryHandle, string]>}
src/examples/OPFSAnyContextVFS.js:11
↓ 4 callers
Function
idbX
* Wrap IndexedDB request with a Promise. * @param {IDBRequest} request * @returns
src/examples/IDBMirrorVFS.js:863
↓ 4 callers
Method
jRead
* @param {number} pFile * @param {Uint8Array} pData * @param {number} iOffset * @returns {number|Promise<number>}
src/FacadeVFS.js:107
↓ 4 callers
Method
jWrite
* @param {number} pFile * @param {Uint8Array} pData * @param {number} iOffset * @returns {number|Promise<number>}
src/FacadeVFS.js:118
↓ 4 callers
Method
reset
* Reset a prepared statement object * @see https://www.sqlite.org/c3ref/reset.html * @param stmt prepared statement pointer * @returns Promis
src/types/index.d.ts:612
↓ 4 callers
Method
set_authorizer
* Register a callback function that is invoked to authorize certain SQL statement actions. * @see https://www.sqlite.org/c3ref/set_authorizer.html
src/types/index.d.ts:687
↓ 3 callers
Method
#getPath
* Convert a bare filename, path, or URL to a UNIX-style path. * @param {string|URL} nameOrURL * @returns {string} path
src/examples/AccessHandlePoolVFS.js:439
↓ 3 callers
Method
#requestAccessHandle
* @param {File} file
src/examples/OPFSCoopSyncVFS.js:515
↓ 3 callers
Method
#setView
* @param {File} file * @param {Transaction} tx
src/examples/IDBMirrorVFS.js:838
↓ 3 callers
Function
G
(t,e)
docs/assets/main.js:3
↓ 3 callers
Function
K
(t)
docs/assets/main.js:4
↓ 3 callers
Function
basicTests
(policy)
test/WebLocksMixin.test.js:14
↓ 3 callers
Method
bind_collection
* Bind a collection of values to a statement * * This convenience function binds values from either an array or object * to a prepared state
src/types/index.d.ts:218
↓ 3 callers
Method
bind_int
* Bind number to prepared statement parameter * * Note that binding indices begin with 1. * @see https://www.sqlite.org/c3ref/bind_blob.html
src/types/index.d.ts:269
↓ 3 callers
Method
bind_null
* Bind null to prepared statement * * Note that binding indices begin with 1. * @see https://www.sqlite.org/c3ref/bind_blob.html * @param
src/types/index.d.ts:292
↓ 3 callers
Method
bind_parameter_count
* Get number of bound parameters * @see https://www.sqlite.org/c3ref/bind_parameter_count.html * @param stmt prepared statement pointer * @re
src/types/index.d.ts:300
↓ 3 callers
Function
checksum
* Compute a page checksum. * @param {ArrayBufferView} data * @returns {Uint32Array}
src/examples/OPFSPermutedVFS.js:1203
↓ 3 callers
Method
column_blob
* Extract a column value from a row after a prepared statment {@link step} * * The contents of the returned buffer may be invalid after the
src/types/index.d.ts:376
↓ 3 callers
Method
column_double
* Extract a column value from a row after a prepared statment {@link step} * @see https://www.sqlite.org/c3ref/column_blob.html * @param stmt pr
src/types/index.d.ts:402
↓ 3 callers
Method
column_int64
* Extract a column value from a row after a prepared statment {@link step} * @see https://www.sqlite.org/c3ref/column_blob.html * @param stmt pr
src/types/index.d.ts:420
↓ 3 callers
Method
column_text
* Extract a column value from a row after a prepared statment {@link step} * @see https://www.sqlite.org/c3ref/column_blob.html * @param stmt pr
src/types/index.d.ts:448
↓ 3 callers
Function
createUTF8
(s)
src/sqlite-api.js:39
↓ 3 callers
Function
cvtCloneableToError
(e)
demo/benchmarks/benchmarks.js:108
↓ 3 callers
Function
delegalize
(lo32, hi32)
src/FacadeVFS.js:506
↓ 3 callers
Method
ensureFocusedElementVisible
()
docs/assets/main.js:3
↓ 3 callers
Method
getCapacity
* Returns the maximum number of SQLite files the file system can hold. * @returns {number}
src/examples/AccessHandlePoolVFS.js:253
↓ 3 callers
Method
getFilename
(fileId)
src/examples/OPFSAdaptiveVFS.js:71
↓ 3 callers
Function
idbX
* @param {IDBRequest} request * @returns {Promise}
test/IDBBatchAtomicVFS.test.js:92
next →
1–100 of 534, ranked by callers