Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WiseLibs/better-sqlite3
/ functions
Functions
287 in github.com/WiseLibs/better-sqlite3
⨍
Functions
287
◇
Types & classes
81
↓ 1 callers
Function
shouldThrow
(fn)
test/43.verbose.js:80
↓ 1 callers
Function
source
(filename1, filename2)
test/41.at-exit.js:8
↓ 1 callers
Function
testTimeout
(timeout)
test/10.database.open.js:95
↓ 1 callers
Function
use
(stmt, fn)
test/43.verbose.js:92
↓ 1 callers
Function
whileBusy
(self, fn)
test/42.integrity.js:30
↓ 1 callers
Function
whileClosed
(self, fn)
test/42.integrity.js:36
↓ 1 callers
Function
whileIterating
(self, fn)
test/42.integrity.js:25
↓ 1 callers
Function
wrapFactory
(factory)
lib/methods/table.js:23
↓ 1 callers
Function
wrapGenerator
(generator, columnMap, moduleName)
lib/methods/table.js:123
↓ 1 callers
Function
wrapTransaction
(apply, fn, db, { begin, commit, rollback, savepoint, release, rollbackTo })
lib/methods/transaction.js:52
↓ 1 callers
Method
xCurrentTime
src/util/fd-vfs.cpp:947
Method
(*xDlSym(sqlite3_vfs* vfs, void* handle, const char* symbol))
src/util/fd-vfs.cpp:931
Function
ALLOC_ARRAY
src/util/helpers.cpp:183
Method
Addon
src/addon.cpp:2
Method
Backup
src/objects/backup.cpp:3
Method
Base
src/util/fd-vfs.cpp:244
Method
BeginOperation
Marks the start of a new operation on this thread. Error messages recorded by earlier operations are then considered stale (see TakeErrorMessage()). T
src/util/fd-vfs.cpp:156
Method
Bind
src/util/binder.cpp:11
Method
BindArgs
Binds all parameters using the values found in the arguments object. Anonymous parameter values can be directly in the arguments object or in an Array
src/util/binder.cpp:163
Method
BindArray
Binds each value in the array or throws an appropriate error. The number of successfully bound parameters is returned.
src/util/binder.cpp:95
Method
BindMap
src/util/bind-map.cpp:29
Method
BindObject
Binds all named parameters using the values found in the given object. The number of successfully bound parameters is returned. If a named parameter i
src/util/binder.cpp:120
Method
BindValue
Binds the value at the given index or throws an appropriate error.
src/util/binder.cpp:74
Method
Binder
src/util/binder.cpp:4
Method
CS
src/util/constants.cpp:12
Method
Cleanup
src/addon.cpp:7
Method
Cleanup
src/objects/statement-iterator.cpp:56
Method
ClearError
src/util/fd-vfs.cpp:294
Method
CloseFd
src/util/fd-vfs.cpp:311
Method
CloseHandles
Whenever this is used, db->RemoveStatement must be invoked beforehand.
src/objects/statement.cpp:26
Method
ClosePendingFds
src/util/fd-vfs.cpp:316
Method
Compare
Used to support ordered containers.
src/objects/statement.hpp:11
Method
Compare
Used to support ordered containers.
src/objects/backup.hpp:11
Method
ConfigureURI
src/addon.cpp:17
Method
CustomAggregate
src/util/custom-aggregate.cpp:4
Method
CustomFunction
src/util/custom-function.cpp:4
Method
CustomTable
src/util/custom-table.cpp:4
Method
Database
src/objects/database.cpp:12
Function
DatabaseInspection
()
lib/methods/inspect.js:2
Method
Deserialize
src/objects/database.cpp:89
Method
DestroyAccumulator
src/util/custom-aggregate.cpp:105
Method
Destructor
src/util/custom-table.cpp:16
Method
DoneRecord
src/objects/statement-iterator.hpp:54
Method
Downcast
src/util/custom-table.cpp:63
Method
Dup
Duplicates a file descriptor, avoiding stdio descriptor numbers (so that database content can never be written to stdout/stderr by accident).
src/util/fd-vfs.cpp:307
Method
Extras
src/objects/statement.cpp:51
Function
FREE_ARRAY
src/util/helpers.cpp:188
Method
Fail
Records an error message on the given main database File (see TakeErrorMessage()). The File's connection must be the caller (so we're on the thread wh
src/util/fd-vfs.cpp:280
Method
Fail
src/util/binder.cpp:60
Method
FailOpen
Records an error message for the Open() call in progress on this thread.
src/util/fd-vfs.cpp:288
Method
FindMainFile
Given the name of a journal, returns the main database File that it belongs to, or NULL. This must be called while holding Mutex().
src/util/fd-vfs.cpp:268
Method
FindMainFileByPrefix
Returns the open main database File whose name is the first name_length characters of the given name, or NULL. This must be called while holding Mutex
src/util/fd-vfs.cpp:257
Function
Foo
()
test/20.statement.run.js:152
Method
FreeSerialization
src/objects/database.cpp:121
Method
GetAccumulator
src/util/custom-aggregate.cpp:88
Method
GetDataErrorPrefix
src/util/custom-table.cpp:90
Method
GetDataErrorPrefix
src/util/custom-function.cpp:48
Method
GetPrototype
src/util/binder.cpp:36
Method
Grow
src/util/bind-map.cpp:58
Function
INIT
src/objects/database.cpp:125
Function
INIT
src/objects/backup.cpp:32
Function
INIT
src/objects/statement.cpp:61
Function
INIT
src/objects/statement-iterator.cpp:64
Function
InitAll
src/better_sqlite3.cpp:49
Method
IsFdName
Returns whether the given filename belongs to this VFS (i.e., it is the name of a database opened by file descriptor, or one of its side files).
src/util/fd-vfs.cpp:250
Function
IsInstanceOf
src/util/helpers.cpp:116
Method
IsLinked
Returns whether the file still has a name in the filesystem.
src/util/fd-vfs.cpp:300
Method
IsPlainObject
An object is "plain" if its prototype is null or a top-level prototype (i.e., some realm's Object.prototype). Rather than comparing against the curren
src/util/binder.cpp:51
Method
Lock
This is a port of unixLock() from SQLite's os_unix.c. Refer to it for detailed commentary on the locking protocol.
src/util/fd-vfs.cpp:505
Method
LockError
src/util/fd-vfs.cpp:339
Function
NODE_GETTER
src/objects/database.cpp:450
Function
NODE_GETTER
src/objects/statement.cpp:381
Function
NODE_METHOD
src/objects/database.cpp:141
Function
NODE_METHOD
src/objects/backup.cpp:39
Function
NODE_METHOD
src/objects/statement.cpp:77
Function
NODE_METHOD
src/objects/statement-iterator.cpp:72
Method
NODE_METHOD
src/addon.cpp:33
Method
NewRecord
src/objects/statement-iterator.hpp:22
Method
NextAnonIndex
src/util/binder.cpp:68
Method
Open
Opens a database connection whose main database file and rollback journal are the given file descriptors (which must have been checked by Validate()).
src/util/fd-vfs.cpp:132
Method
OpenJournal
src/util/fd-vfs.cpp:854
Method
OpenMain
src/util/fd-vfs.cpp:757
Method
Pair
src/util/bind-map.cpp:19
Method
PropagateJSError
src/util/custom-table.cpp:85
Function
PrototypeMethod
src/util/helpers.cpp:142
Function
PrototypeSymbolMethod
src/util/helpers.cpp:152
Method
Register
Registers the VFS with SQLite. This is idempotent and thread-safe.
src/util/fd-vfs.cpp:52
Method
RowBuilder
src/util/row-builder.cpp:1
Method
SetCode
src/util/constants.cpp:167
Function
SetInstanceGetter
src/util/helpers.cpp:167
Method
SetLock
Acquires, upgrades, or releases an OS-level lock on the given byte range. Returns 0 on success, or -1 with errno set on failure.
src/util/fd-vfs.cpp:323
Method
SetString
src/util/constants.cpp:163
Method
Statement
src/objects/statement.cpp:3
Method
StatementIterator
src/objects/statement-iterator.cpp:3
Method
Sync
src/util/fd-vfs.cpp:408
Method
TakeErrorMessage
SQLite has no way for a VFS to provide an error message, so when this VFS fails with a specific reason, it records the message on the connection's mai
src/util/fd-vfs.cpp:169
Method
TempDataConverter
src/util/custom-table.cpp:81
Function
TestExtensionFunction
deps/test_extension.c:2
Method
Throw
src/objects/statement-iterator.cpp:50
Method
ThrowSqliteError
src/objects/database.cpp:53
← previous
next →
101–200 of 287, ranked by callers