|
How SQLite Is Tested
(testing.html)
7.2. Coverage testing of defensive code
... In release builds, these macros are pass-throughs:
#define ALWAYS(X) (X)
#define NEVER(X) (X)
During most testing, however, these macros will throw an assertion
fault if their argument does not have the expected truth value. This
alerts the ...
|
|
Run-Time Loadable Extensions
(loadext.html)
2. Loading An Extension
... load_extension(X,Y). It works just like the sqlite3_load_extension()
C interface.
Both methods for loading an extension allow you to specify
the name of an entry point for the extension.
You can leave this argument blank - passing in
a NULL ...
|
|
The Virtual Table Mechanism Of SQLite
(vtab.html)
2.20. The xSavepoint, xRelease, and xRollbackTo Methods
... When xSavepoint(X,N) is invoked, that is a signal to the virtual table X
that it should save its current state as savepoint N.
A subsequent call
to xRollbackTo(X,R) means that the state of the virtual table ...
|
|
Dynamic Memory Allocation In SQLite
(malloc.html)
2.1. Use of reallocarray()
... Instead, SQLite
does allocations of the form "X+C" or "N*X+C" or "M*N*X+C" or
"N*X+M*Y+C", and so forth. The reallocarray() interface is not helpful
in avoiding integer overflow in those cases ...
|
|
Application-Defined SQL Functions
(appfunc.html)
3. Security Implications
... Suppose, for example, an application defines
a new "system(X)" SQL function that runs its argument X as a command and
returns the integer result code. Perhaps the implementation is like this:
static void systemFunc(
sqlite3_context *context,
int argc,
sqlite3_value ...
|
|
Query Result Formatting In The CLI
(climode.html)
6.8. --ifmt STRING
... Example
uses of this option include "--ifmt %x") to render all integers
as hexadecimal, or "--ifmt %,d" to put commas at the thousands positions.
Valid arguments to --ifmt begin with "%" and end with one of
"d", "x", "X", or "o ...
|
|
C API: OS Interface File Virtual Methods Object
(c3ref/io_methods.html)
struct sqlite3_io_methods
... The second choice is a Mac OS X style fullsync. The SQLITE_SYNC_DATAONLY
flag may be ORed in to indicate that only the data of the file
and not its inode needs to be synced.
The integer values to xLock() and ...
|
|
SELECT
(lang_select.html)
... For each pair of named
columns, the expression "lhs.X = rhs.X" is evaluated for each row of
the cartesian product as a boolean expression. Only rows for which
all such expressions evaluate to true are included from the
result ...
|
|
Command Line Shell For SQLite
(cli.html)
7.3. File I/O Functions
... The readfile(X) SQL function reads the entire content of the file named
X and returns that content as a BLOB. This can be used to load content into
a table. For example:
SQLite-3.54 ex1.db-> CREATE ...
|
|
C/C++ Interface For SQLite Version 3 (old)
(capi3.html)
... The API for version 3.0 is similar to the version 2.X API,
but with some important changes. Most noticeably, the "sqlite_"
prefix that occurs on the beginning of all API functions and data
structures are changed to "sqlite3_ ...
|
Page generated by FTS5 in about 86.84 ms.