merge 3.17.0

This commit is contained in:
christos 2017-03-11 16:29:51 +00:00
parent 0bc8c67f99
commit 022f005200
212 changed files with 13013 additions and 7310 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: sqlite3.1,v 1.5 2012/12/21 19:26:39 njoly Exp $
.\" $NetBSD: sqlite3.1,v 1.1 2017/03/11 16:29:51 christos Exp $
.Dd December 16, 2012
.Dt SQLITE3 1
.Os

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
# $NetBSD: shlib_version,v 1.3 2014/02/16 18:16:35 christos Exp $
# $NetBSD: shlib_version,v 1.4 2017/03/11 16:29:52 christos Exp $
#
major=1
minor=2
minor=3

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2016/07/03 17:07:38 abhinav Exp $
# $NetBSD: Makefile,v 1.3 2017/03/11 16:29:52 christos Exp $
.include <bsd.init.mk>
@ -10,6 +10,7 @@ SQLITE_CHECKPOINT_PASSIVE.3 \
SQLITE_CONFIG_SINGLETHREAD.3 \
SQLITE_CREATE_INDEX.3 \
SQLITE_DBCONFIG_LOOKASIDE.3 \
SQLITE_DBCONFIG_MAINDBNAME.3 \
SQLITE_DBSTATUS_LOOKASIDE_USED.3 \
SQLITE_DENY.3 \
SQLITE_DETERMINISTIC.3 \
@ -32,12 +33,14 @@ SQLITE_STATUS_MEMORY_USED.3 \
SQLITE_STMTSTATUS_FULLSCAN_STEP.3 \
SQLITE_SYNC_NORMAL.3 \
SQLITE_TESTCTRL_FIRST.3 \
SQLITE_TRACE_STMT.3 \
SQLITE_UTF8.3 \
SQLITE_VERSION.3 \
SQLITE_VTAB_CONSTRAINT_SUPPORT.3 \
sqlite3.3 \
sqlite3_aggregate_context.3 \
sqlite3_aggregate_count.3 \
sqlite3_api_routines.3 \
sqlite3_auto_extension.3 \
sqlite3_backup.3 \
sqlite3_backup_init.3 \
@ -55,6 +58,7 @@ sqlite3_blob_write.3 \
sqlite3_busy_handler.3 \
sqlite3_busy_timeout.3 \
sqlite3_cancel_auto_extension.3 \
sqlite3_changegroup.3 \
sqlite3_changes.3 \
sqlite3_changeset_iter.3 \
sqlite3_clear_bindings.3 \
@ -137,6 +141,7 @@ sqlite3_snapshot_cmp.3 \
sqlite3_snapshot_free.3 \
sqlite3_snapshot_get.3 \
sqlite3_snapshot_open.3 \
sqlite3_snapshot_recover.3 \
sqlite3_soft_heap_limit.3 \
sqlite3_soft_heap_limit64.3 \
sqlite3_sql.3 \
@ -158,6 +163,7 @@ sqlite3_test_control.3 \
sqlite3_threadsafe.3 \
sqlite3_total_changes.3 \
sqlite3_trace.3 \
sqlite3_trace_v2.3 \
sqlite3_unlock_notify.3 \
sqlite3_update_hook.3 \
sqlite3_uri_parameter.3 \
@ -177,7 +183,10 @@ sqlite3_wal_autocheckpoint.3 \
sqlite3_wal_checkpoint.3 \
sqlite3_wal_checkpoint_v2.3 \
sqlite3_wal_hook.3 \
sqlite3changegroup_add.3 \
sqlite3changegroup_delete.3 \
sqlite3changegroup_new.3 \
sqlite3changegroup_output.3 \
sqlite3changeset_apply.3 \
sqlite3changeset_apply_strm.3 \
sqlite3changeset_concat.3 \

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE_ACCESS_EXISTS 3
.Os
.Sh NAME

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE_CHANGESET_DATA 3
.Os
.Sh NAME

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE_CHANGESET_OMIT 3
.Os
.Sh NAME

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE_CHECKPOINT_PASSIVE 3
.Os
.Sh NAME

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE_CONFIG_SINGLETHREAD 3
.Os
.Sh NAME
@ -391,7 +391,7 @@ compile-time option.
.Xr sqlite3_soft_heap_limit64 3 ,
.Xr sqlite3_status 3 ,
.Xr SQLITE_CONFIG_SINGLETHREAD 3 ,
.Xr SQLITE_DBCONFIG_LOOKASIDE 3 ,
.Xr SQLITE_DBCONFIG_MAINDBNAME 3 ,
.Xr SQLITE_OK 3 ,
.Xr SQLITE_FCNTL_LOCKSTATE 3 ,
.Xr SQLITE_OPEN_READONLY 3

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE_CREATE_INDEX 3
.Os
.Sh NAME

View File

@ -0,0 +1,137 @@
.Dd March 11, 2017
.Dt SQLITE_DBCONFIG_MAINDBNAME 3
.Os
.Sh NAME
.Nm SQLITE_DBCONFIG_MAINDBNAME ,
.Nm SQLITE_DBCONFIG_LOOKASIDE ,
.Nm SQLITE_DBCONFIG_ENABLE_FKEY ,
.Nm SQLITE_DBCONFIG_ENABLE_TRIGGER ,
.Nm SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER ,
.Nm SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION ,
.Nm SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE
.Nd Database Connection Configuration Options
.Sh SYNOPSIS
.Fd #define SQLITE_DBCONFIG_MAINDBNAME
.Fd #define SQLITE_DBCONFIG_LOOKASIDE
.Fd #define SQLITE_DBCONFIG_ENABLE_FKEY
.Fd #define SQLITE_DBCONFIG_ENABLE_TRIGGER
.Fd #define SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER
.Fd #define SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION
.Fd #define SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE
.Sh DESCRIPTION
These constants are the available integer configuration options that
can be passed as the second argument to the sqlite3_db_config()
interface.
.Pp
New configuration options may be added in future releases of SQLite.
Existing configuration options might be discontinued.
Applications should check the return code from sqlite3_db_config()
to make sure that the call worked.
The sqlite3_db_config() interface will return a
non-zero error code if a discontinued or unsupported configuration
option is invoked.
.Bl -tag -width Ds
.It SQLITE_DBCONFIG_LOOKASIDE
This option takes three additional arguments that determine the lookaside memory allocator
configuration for the database connection.
The first argument (the third parameter to sqlite3_db_config()
is a pointer to a memory buffer to use for lookaside memory.
The first argument after the SQLITE_DBCONFIG_LOOKASIDE verb may be
NULL in which case SQLite will allocate the lookaside buffer itself
using sqlite3_malloc().
The second argument is the size of each lookaside buffer slot.
The third argument is the number of slots.
The size of the buffer in the first argument must be greater than or
equal to the product of the second and third arguments.
The buffer must be aligned to an 8-byte boundary.
If the second argument to SQLITE_DBCONFIG_LOOKASIDE is not a multiple
of 8, it is internally rounded down to the next smaller multiple of
8.
The lookaside memory configuration for a database connection can only
be changed when that connection is not currently using lookaside memory,
or in other words when the "current value" returned by sqlite3_db_status(D,SQLITE_CONFIG_LOOKASIDE,...)
is zero.
Any attempt to change the lookaside memory configuration when lookaside
memory is in use leaves the configuration unchanged and returns SQLITE_BUSY.
.It SQLITE_DBCONFIG_ENABLE_FKEY
This option is used to enable or disable the enforcement of foreign key constraints.
There should be two additional arguments.
The first argument is an integer which is 0 to disable FK enforcement,
positive to enable FK enforcement or negative to leave FK enforcement
unchanged.
The second parameter is a pointer to an integer into which is written
0 or 1 to indicate whether FK enforcement is off or on following this
call.
The second parameter may be a NULL pointer, in which case the FK enforcement
setting is not reported back.
.It SQLITE_DBCONFIG_ENABLE_TRIGGER
This option is used to enable or disable triggers.
There should be two additional arguments.
The first argument is an integer which is 0 to disable triggers, positive
to enable triggers or negative to leave the setting unchanged.
The second parameter is a pointer to an integer into which is written
0 or 1 to indicate whether triggers are disabled or enabled following
this call.
The second parameter may be a NULL pointer, in which case the trigger
setting is not reported back.
.It SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER
This option is used to enable or disable the two-argument version of
the fts3_tokenizer() function which is part of the
FTS3 full-text search engine extension.
There should be two additional arguments.
The first argument is an integer which is 0 to disable fts3_tokenizer()
or positive to enable fts3_tokenizer() or negative to leave the setting
unchanged.
The second parameter is a pointer to an integer into which is written
0 or 1 to indicate whether fts3_tokenizer is disabled or enabled following
this call.
The second parameter may be a NULL pointer, in which case the new setting
is not reported back.
.It SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION
This option is used to enable or disable the sqlite3_load_extension()
interface independently of the load_extension() SQL
function.
The sqlite3_enable_load_extension()
API enables or disables both the C-API sqlite3_load_extension()
and the SQL function load_extension().
There should be two additional arguments.
When the first argument to this interface is 1, then only the C-API
is enabled and the SQL function remains disabled.
If the first argument to this interface is 0, then both the C-API and
the SQL function are disabled.
If the first argument is -1, then no changes are made to state of either
the C-API or the SQL function.
The second parameter is a pointer to an integer into which is written
0 or 1 to indicate whether sqlite3_load_extension()
interface is disabled or enabled following this call.
The second parameter may be a NULL pointer, in which case the new setting
is not reported back.
.It SQLITE_DBCONFIG_MAINDBNAME
This option is used to change the name of the "main" database schema.
The sole argument is a pointer to a constant UTF8 string which will
become the new schema name in place of "main".
SQLite does not make a copy of the new main schema name string, so
the application must ensure that the argument passed into this DBCONFIG
option is unchanged until after the database connection closes.
.It SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE
Usually, when a database in wal mode is closed or detached from a database
handle, SQLite checks if this will mean that there are now no connections
at all to the database.
If so, it performs a checkpoint operation before closing the connection.
This option may be used to override this behaviour.
The first parameter passed to this operation is an integer - non-zero
to disable checkpoints-on-close, or zero (the default) to enable them.
The second parameter is a pointer to an integer into which is written
0 or 1 to indicate whether checkpoints-on-close have been disabled
- 0 if they are not disabled, 1 if they are.
.El
.Pp
.Sh SEE ALSO
.Xr sqlite3 3 ,
.Xr sqlite3_db_config 3 ,
.Xr sqlite3_db_status 3 ,
.Xr sqlite3_enable_load_extension 3 ,
.Xr sqlite3_load_extension 3 ,
.Xr sqlite3_malloc 3 ,
.Xr SQLITE_OK 3 ,
.Xr SQLITE_CONFIG_SINGLETHREAD 3

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE_DBSTATUS_LOOKASIDE_USED 3
.Os
.Sh NAME
@ -13,6 +13,7 @@
.Nm SQLITE_DBSTATUS_CACHE_MISS ,
.Nm SQLITE_DBSTATUS_CACHE_WRITE ,
.Nm SQLITE_DBSTATUS_DEFERRED_FKS ,
.Nm SQLITE_DBSTATUS_CACHE_USED_SHARED ,
.Nm SQLITE_DBSTATUS_MAX
.Nd Status Parameters for database connections
.Sh SYNOPSIS
@ -27,6 +28,7 @@
.Fd #define SQLITE_DBSTATUS_CACHE_MISS
.Fd #define SQLITE_DBSTATUS_CACHE_WRITE
.Fd #define SQLITE_DBSTATUS_DEFERRED_FKS
.Fd #define SQLITE_DBSTATUS_CACHE_USED_SHARED
.Fd #define SQLITE_DBSTATUS_MAX
.Sh DESCRIPTION
These constants are the available integer "verbs" that can be passed
@ -65,6 +67,17 @@ This parameter returns the approximate number of bytes of heap memory
used by all pager caches associated with the database connection.
The highwater mark associated with SQLITE_DBSTATUS_CACHE_USED is always
0.
.It SQLITE_DBSTATUS_CACHE_USED_SHARED
This parameter is similar to DBSTATUS_CACHE_USED, except that if a
pager cache is shared between two or more connections the bytes of
heap memory used by that pager cache is divided evenly between the
attached connections.
In other words, if none of the pager caches associated with the database
connection are shared, this request returns the same value as DBSTATUS_CACHE_USED.
Or, if one or more or the pager caches are shared, the value returned
by this call will be smaller than that returned by DBSTATUS_CACHE_USED.
The highwater mark associated with SQLITE_DBSTATUS_CACHE_USED_SHARED
is always 0.
.It SQLITE_DBSTATUS_SCHEMA_USED
This parameter returns the approximate number of bytes of heap memory
used to store the schema for all databases associated with the connection

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE_DENY 3
.Os
.Sh NAME

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE_DETERMINISTIC 3
.Os
.Sh NAME

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE_FCNTL_LOCKSTATE 3
.Os
.Sh NAME
@ -28,7 +28,9 @@
.Nm SQLITE_FCNTL_ZIPVFS ,
.Nm SQLITE_FCNTL_RBU ,
.Nm SQLITE_FCNTL_VFS_POINTER ,
.Nm SQLITE_FCNTL_JOURNAL_POINTER
.Nm SQLITE_FCNTL_JOURNAL_POINTER ,
.Nm SQLITE_FCNTL_WIN32_GET_HANDLE ,
.Nm SQLITE_FCNTL_PDB
.Nd Standard File Control Opcodes
.Sh SYNOPSIS
.Fd #define SQLITE_FCNTL_LOCKSTATE
@ -58,6 +60,8 @@
.Fd #define SQLITE_FCNTL_RBU
.Fd #define SQLITE_FCNTL_VFS_POINTER
.Fd #define SQLITE_FCNTL_JOURNAL_POINTER
.Fd #define SQLITE_FCNTL_WIN32_GET_HANDLE
.Fd #define SQLITE_FCNTL_PDB
.Sh DESCRIPTION
These integer constants are opcodes for the xFileControl method of
the sqlite3_io_methods object and for the sqlite3_file_control()
@ -278,6 +282,12 @@ its argument as a pointer to an integer and it writes a boolean into
that integer depending on whether or not the file has been renamed,
moved, or deleted since it was first opened.
.It
The SQLITE_FCNTL_WIN32_GET_HANDLE opcode
can be used to obtain the underlying native file handle associated
with a file handle.
This file control interprets its argument as a pointer to a native
file handle and writes the resulting value there.
.It
The SQLITE_FCNTL_WIN32_SET_HANDLE opcode
is used for debugging.
This opcode causes the xFileControl method to swap the file handle

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE_INDEX_CONSTRAINT_EQ 3
.Os
.Sh NAME

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE_INDEX_SCAN_UNIQUE 3
.Os
.Sh NAME

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE_INTEGER 3
.Os
.Sh NAME

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE_IOCAP_ATOMIC 3
.Os
.Sh NAME
@ -52,7 +52,7 @@ The SQLITE_IOCAP_POWERSAFE_OVERWRITE property means that after reboot
following a crash or power loss, the only bytes in a file that were
written at the application level might have changed and that adjacent
bytes, even bytes within the same sector are guaranteed to be unchanged.
The SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN flag indicate that a file cannot
The SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN flag indicates that a file cannot
be deleted when open.
The SQLITE_IOCAP_IMMUTABLE flag indicates that the file is on read-only
media and cannot be changed even by processes with elevated privileges.

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE_IOERR_READ 3
.Os
.Sh NAME
@ -56,7 +56,8 @@
.Nm SQLITE_NOTICE_RECOVER_WAL ,
.Nm SQLITE_NOTICE_RECOVER_ROLLBACK ,
.Nm SQLITE_WARNING_AUTOINDEX ,
.Nm SQLITE_AUTH_USER
.Nm SQLITE_AUTH_USER ,
.Nm SQLITE_OK_LOAD_PERMANENTLY
.Nd Extended Result Codes
.Sh SYNOPSIS
.Fd #define SQLITE_IOERR_READ
@ -114,6 +115,7 @@
.Fd #define SQLITE_NOTICE_RECOVER_ROLLBACK
.Fd #define SQLITE_WARNING_AUTOINDEX
.Fd #define SQLITE_AUTH_USER
.Fd #define SQLITE_OK_LOAD_PERMANENTLY
.Sh DESCRIPTION
In its default configuration, SQLite API routines return one of 30
integer result codes.
@ -122,8 +124,8 @@ coarse-grained.
They do not provide as much information about problems as programmers
might like.
In an effort to address this, newer versions of SQLite (version 3.3.8
and later) include support for additional result codes that provide
more detailed information about errors.
dateof:3.3.8 and later) include support for additional
result codes that provide more detailed information about errors.
These extended result codes are enabled or disabled
on a per database connection basis using the sqlite3_extended_result_codes()
API.

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE_LIMIT_LENGTH 3
.Os
.Sh NAME

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE_LOCK_NONE 3
.Os
.Sh NAME

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE_MUTEX_FAST 3
.Os
.Sh NAME

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE_OK 3
.Os
.Sh NAME

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE_OPEN_READONLY 3
.Os
.Sh NAME

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE_ROLLBACK 3
.Os
.Sh NAME

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE_SCANSTAT_NLOOP 3
.Os
.Sh NAME

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE_SHM_NLOCK 3
.Os
.Sh NAME

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE_SHM_UNLOCK 3
.Os
.Sh NAME

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE_STATUS_MEMORY_USED 3
.Os
.Sh NAME

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE_STMTSTATUS_FULLSCAN_STEP 3
.Os
.Sh NAME

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE_SYNC_NORMAL 3
.Os
.Sh NAME

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE_TESTCTRL_FIRST 3
.Os
.Sh NAME
@ -18,6 +18,7 @@
.Nm SQLITE_TESTCTRL_SCRATCHMALLOC ,
.Nm SQLITE_TESTCTRL_LOCALTIME_FAULT ,
.Nm SQLITE_TESTCTRL_EXPLAIN_STMT ,
.Nm SQLITE_TESTCTRL_ONCE_RESET_THRESHOLD ,
.Nm SQLITE_TESTCTRL_NEVER_CORRUPT ,
.Nm SQLITE_TESTCTRL_VDBE_COVERAGE ,
.Nm SQLITE_TESTCTRL_BYTEORDER ,
@ -43,6 +44,7 @@
.Fd #define SQLITE_TESTCTRL_SCRATCHMALLOC
.Fd #define SQLITE_TESTCTRL_LOCALTIME_FAULT
.Fd #define SQLITE_TESTCTRL_EXPLAIN_STMT
.Fd #define SQLITE_TESTCTRL_ONCE_RESET_THRESHOLD
.Fd #define SQLITE_TESTCTRL_NEVER_CORRUPT
.Fd #define SQLITE_TESTCTRL_VDBE_COVERAGE
.Fd #define SQLITE_TESTCTRL_BYTEORDER

View File

@ -0,0 +1,65 @@
.Dd March 11, 2017
.Dt SQLITE_TRACE_STMT 3
.Os
.Sh NAME
.Nm SQLITE_TRACE_STMT ,
.Nm SQLITE_TRACE_PROFILE ,
.Nm SQLITE_TRACE_ROW ,
.Nm SQLITE_TRACE_CLOSE
.Nd SQL Trace Event Codes
.Sh SYNOPSIS
.Fd #define SQLITE_TRACE_STMT
.Fd #define SQLITE_TRACE_PROFILE
.Fd #define SQLITE_TRACE_ROW
.Fd #define SQLITE_TRACE_CLOSE
.Sh DESCRIPTION
These constants identify classes of events that can be monitored using
the sqlite3_trace_v2() tracing logic.
The third argument to sqlite3_trace_v2() is an OR-ed
combination of one or more of the following constants.
The first argument to the trace callback is one of the following constants.
.Pp
New tracing constants may be added in future releases.
.Pp
A trace callback has four arguments: xCallback(T,C,P,X).
The T argument is one of the integer type codes above.
The C argument is a copy of the context pointer passed in as the fourth
argument to sqlite3_trace_v2().
The P and X arguments are pointers whose meanings depend on T.
.Bl -tag -width Ds
.It SQLITE_TRACE_STMT
An SQLITE_TRACE_STMT callback is invoked when a prepared statement
first begins running and possibly at other times during the execution
of the prepared statement, such as at the start of each trigger subprogram.
The P argument is a pointer to the prepared statement.
The X argument is a pointer to a string which is the unexpanded SQL
text of the prepared statement or an SQL comment that indicates the
invocation of a trigger.
The callback can compute the same text that would have been returned
by the legacy sqlite3_trace() interface by using the
X argument when X begins with "--" and invoking sqlite3_expanded_sql(P)
otherwise.
.It SQLITE_TRACE_PROFILE
An SQLITE_TRACE_PROFILE callback provides approximately the same information
as is provided by the sqlite3_profile() callback.
The P argument is a pointer to the prepared statement
and the X argument points to a 64-bit integer which is the estimated
of the number of nanosecond that the prepared statement took to run.
The SQLITE_TRACE_PROFILE callback is invoked when the statement finishes.
.It SQLITE_TRACE_ROW
An SQLITE_TRACE_ROW callback is invoked whenever a prepared statement
generates a single row of result.
The P argument is a pointer to the prepared statement
and the X argument is unused.
.It SQLITE_TRACE_CLOSE
An SQLITE_TRACE_CLOSE callback is invoked when a database connection
closes.
The P argument is a pointer to the database connection
object and the X argument is unused.
.El
.Pp
.Sh SEE ALSO
.Xr sqlite3 3 ,
.Xr sqlite3_stmt 3 ,
.Xr sqlite3_trace 3 ,
.Xr sqlite3_trace_v2 3

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE_UTF8 3
.Os
.Sh NAME

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE_VERSION 3
.Os
.Sh NAME
@ -23,8 +23,9 @@ be larger than the release from which it is derived.
Either Y will be held constant and Z will be incremented or else Y
will be incremented and Z will be reset to zero.
.Pp
Since version 3.6.18, SQLite source code has been stored in the <a
href="http://www.fossil-scm.org/">Fossil configuration management system</a>.
Since version 3.6.18 (dateof:3.6.18), SQLite
source code has been stored in the <a href="http://www.fossil-scm.org/">Fossil
configuration management system</a>.
The SQLITE_SOURCE_ID macro evaluates to a string which identifies a
particular check-in of SQLite within its configuration management system.
The SQLITE_SOURCE_ID string contains the date and time of the check-in

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE_VTAB_CONSTRAINT_SUPPORT 3
.Os
.Sh NAME

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3 3
.Os
.Sh NAME

View File

@ -1,11 +1,11 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_AGGREGATE_CONTEXT 3
.Os
.Sh NAME
.Nm sqlite3_aggregate_context
.Nd Obtain Aggregate Function Context
.Sh SYNOPSIS
.Ft void *SQLITE_STDCALL
.Ft void *
.Fo sqlite3_aggregate_context
.Fa "sqlite3_context*"
.Fa "int nBytes"

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_AGGREGATE_COUNT 3
.Os
.Sh NAME
@ -10,28 +10,28 @@
.Nm sqlite3_memory_alarm
.Nd Deprecated Functions
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_aggregate_count
.Fa "sqlite3_context*"
.Fc
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_expired
.Fa "sqlite3_stmt*"
.Fc
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_transfer_bindings
.Fa "sqlite3_stmt*"
.Fa "sqlite3_stmt*"
.Fc
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_global_recover
.Fa "void"
.Fc
.Ft void SQLITE_STDCALL
.Ft void
.Fo sqlite3_thread_cleanup
.Fa "void"
.Fc
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_memory_alarm
.Fa "void(*)(void*,sqlite3_int64,int)"
.Fa "void*"

View File

@ -0,0 +1,13 @@
.Dd March 11, 2017
.Dt SQLITE3_API_ROUTINES 3
.Os
.Sh NAME
.Nm sqlite3_api_routines
.Nd Loadable Extension Thunk
.Sh SYNOPSIS
.Vt typedef struct sqlite3_api_routines sqlite3_api_routines;
.Sh DESCRIPTION
A pointer to the opaque sqlite3_api_routines structure is passed as
the third parameter to entry points of loadable extensions.
This structure must be typedefed in order to work around compiler warnings
on some platforms.

View File

@ -1,13 +1,13 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_AUTO_EXTENSION 3
.Os
.Sh NAME
.Nm sqlite3_auto_extension
.Nd Automatically Load Statically Linked Extensions
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_auto_extension
.Fa "void (*xEntryPoint)(void)"
.Fa "void(*xEntryPoint)(void)"
.Fc
.Sh DESCRIPTION
This interface causes the xEntryPoint() function to be invoked for
@ -18,7 +18,7 @@ loaded into all new database connections.
.Pp
Even though the function prototype shows that xEntryPoint() takes no
arguments and returns void, SQLite invokes xEntryPoint() with three
arguments and expects and integer result as if the signature of the
arguments and expects an integer result as if the signature of the
entry point where as follows:
.Bd -ragged
.Bd -literal

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_BACKUP 3
.Os
.Sh NAME

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_BACKUP_INIT 3
.Os
.Sh NAME
@ -9,27 +9,27 @@
.Nm sqlite3_backup_pagecount
.Nd Online Backup API.
.Sh SYNOPSIS
.Ft sqlite3_backup *SQLITE_STDCALL
.Ft sqlite3_backup *
.Fo sqlite3_backup_init
.Fa "sqlite3 *pDest"
.Fa "const char *zDestName"
.Fa "sqlite3 *pSource"
.Fa "const char *zSourceName "
.Fc
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_backup_step
.Fa "sqlite3_backup *p"
.Fa "int nPage"
.Fc
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_backup_finish
.Fa "sqlite3_backup *p"
.Fc
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_backup_remaining
.Fa "sqlite3_backup *p"
.Fc
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_backup_pagecount
.Fa "sqlite3_backup *p"
.Fc

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_BIND_BLOB 3
.Os
.Sh NAME
@ -16,7 +16,7 @@
.Nm sqlite3_bind_zeroblob64
.Nd Binding Values To Prepared Statements
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_bind_blob
.Fa "sqlite3_stmt*"
.Fa "int"
@ -24,7 +24,7 @@
.Fa "int n"
.Fa "void(*)(void*)"
.Fc
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_bind_blob64
.Fa "sqlite3_stmt*"
.Fa "int"
@ -32,30 +32,30 @@
.Fa "sqlite3_uint64"
.Fa "void(*)(void*)"
.Fc
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_bind_double
.Fa "sqlite3_stmt*"
.Fa "int"
.Fa "double"
.Fc
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_bind_int
.Fa "sqlite3_stmt*"
.Fa "int"
.Fa "int"
.Fc
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_bind_int64
.Fa "sqlite3_stmt*"
.Fa "int"
.Fa "sqlite3_int64"
.Fc
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_bind_null
.Fa "sqlite3_stmt*"
.Fa "int"
.Fc
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_bind_text
.Fa "sqlite3_stmt*"
.Fa "int"
@ -63,7 +63,7 @@
.Fa "int"
.Fa "void(*)(void*)"
.Fc
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_bind_text16
.Fa "sqlite3_stmt*"
.Fa "int"
@ -71,7 +71,7 @@
.Fa "int"
.Fa "void(*)(void*)"
.Fc
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_bind_text64
.Fa "sqlite3_stmt*"
.Fa "int"
@ -80,19 +80,19 @@
.Fa "void(*)(void*)"
.Fa "unsigned char encoding"
.Fc
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_bind_value
.Fa "sqlite3_stmt*"
.Fa "int"
.Fa "const sqlite3_value*"
.Fc
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_bind_zeroblob
.Fa "sqlite3_stmt*"
.Fa "int"
.Fa "int n"
.Fc
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_bind_zeroblob64
.Fa "sqlite3_stmt*"
.Fa "int"

View File

@ -1,11 +1,11 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_BIND_PARAMETER_COUNT 3
.Os
.Sh NAME
.Nm sqlite3_bind_parameter_count
.Nd Number Of SQL Parameters
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_bind_parameter_count
.Fa "sqlite3_stmt*"
.Fc

View File

@ -1,11 +1,11 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_BIND_PARAMETER_INDEX 3
.Os
.Sh NAME
.Nm sqlite3_bind_parameter_index
.Nd Index Of A Parameter With A Given Name
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_bind_parameter_index
.Fa "sqlite3_stmt*"
.Fa "const char *zName"

View File

@ -1,11 +1,11 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_BIND_PARAMETER_NAME 3
.Os
.Sh NAME
.Nm sqlite3_bind_parameter_name
.Nd Name Of A Host Parameter
.Sh SYNOPSIS
.Ft const char *SQLITE_STDCALL
.Ft const char *
.Fo sqlite3_bind_parameter_name
.Fa "sqlite3_stmt*"
.Fa "int"

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_BLOB 3
.Os
.Sh NAME

View File

@ -1,11 +1,11 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_BLOB_BYTES 3
.Os
.Sh NAME
.Nm sqlite3_blob_bytes
.Nd Return The Size Of An Open BLOB
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_blob_bytes
.Fa "sqlite3_blob *"
.Fc

View File

@ -1,11 +1,11 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_BLOB_CLOSE 3
.Os
.Sh NAME
.Nm sqlite3_blob_close
.Nd Close A BLOB Handle
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_blob_close
.Fa "sqlite3_blob *"
.Fc

View File

@ -1,11 +1,11 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_BLOB_OPEN 3
.Os
.Sh NAME
.Nm sqlite3_blob_open
.Nd Open A BLOB For Incremental I/O
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_blob_open
.Fa "sqlite3*"
.Fa "const char *zDb"
@ -70,6 +70,13 @@ Unless it returns SQLITE_MISUSE, this function sets the database connection
error code and message accessible via sqlite3_errcode()
and sqlite3_errmsg() and related functions.
.Pp
A BLOB referenced by sqlite3_blob_open() may be read using the sqlite3_blob_read()
interface and modified by using sqlite3_blob_write().
The BLOB handle can be moved to a different row of the same
table using the sqlite3_blob_reopen() interface.
However, the column, table, or database of a BLOB handle
cannot be changed after the BLOB handle is opened.
.Pp
If the row that a BLOB handle points to is modified by an UPDATE,
DELETE, or by ON CONFLICT side-effects then the BLOB
handle is marked as "expired".
@ -94,6 +101,7 @@ interface.
.Pp
To avoid a resource leak, every open BLOB handle should
eventually be released by a call to sqlite3_blob_close().
.Pp
.Sh SEE ALSO
.Xr sqlite3_blob 3 ,
.Xr sqlite3 3 ,
@ -101,6 +109,7 @@ eventually be released by a call to sqlite3_blob_close().
.Xr sqlite3_blob_bytes 3 ,
.Xr sqlite3_blob_close 3 ,
.Xr sqlite3_blob_read 3 ,
.Xr sqlite3_blob_reopen 3 ,
.Xr sqlite3_blob_write 3 ,
.Xr sqlite3_errcode 3 ,
.Xr sqlite3_result_blob 3 ,

View File

@ -1,11 +1,11 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_BLOB_READ 3
.Os
.Sh NAME
.Nm sqlite3_blob_read
.Nd Read Data From A BLOB Incrementally
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_blob_read
.Fa "sqlite3_blob *"
.Fa "void *Z"

View File

@ -1,24 +1,24 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_BLOB_REOPEN 3
.Os
.Sh NAME
.Nm sqlite3_blob_reopen
.Nd Move a BLOB Handle to a New Row
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_blob_reopen
.Fa "sqlite3_blob *"
.Fa "sqlite3_int64"
.Fc
.Sh DESCRIPTION
This function is used to move an existing blob handle so that it points
to a different row of the same database table.
This function is used to move an existing BLOB handle so
that it points to a different row of the same database table.
The new row is identified by the rowid value passed as the second argument.
Only the row can be changed.
The database, table and column on which the blob handle is open remain
the same.
Moving an existing blob handle to a new row can be faster than closing
the existing handle and opening a new one.
Moving an existing BLOB handle to a new row is faster than
closing the existing handle and opening a new one.
.Pp
The new row must meet the same criteria as for sqlite3_blob_open()
- it must exist and there must be either a blob or text value stored
@ -34,6 +34,7 @@ handle always returns zero.
.Pp
This function sets the database handle error code and message.
.Sh SEE ALSO
.Xr sqlite3_blob 3 ,
.Xr sqlite3_blob_bytes 3 ,
.Xr sqlite3_blob_open 3 ,
.Xr sqlite3_blob_read 3 ,

View File

@ -1,11 +1,11 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_BLOB_WRITE 3
.Os
.Sh NAME
.Nm sqlite3_blob_write
.Nd Write Data Into A BLOB Incrementally
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_blob_write
.Fa "sqlite3_blob *"
.Fa "const void *z"

View File

@ -1,11 +1,11 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_BUSY_HANDLER 3
.Os
.Sh NAME
.Nm sqlite3_busy_handler
.Nd Register A Callback To Handle SQLITE_BUSY Errors
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_busy_handler
.Fa "sqlite3*"
.Fa "int(*)(void*,int)"

View File

@ -1,11 +1,11 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_BUSY_TIMEOUT 3
.Os
.Sh NAME
.Nm sqlite3_busy_timeout
.Nd Set A Busy Timeout
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_busy_timeout
.Fa "sqlite3*"
.Fa "int ms"

View File

@ -1,13 +1,13 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_CANCEL_AUTO_EXTENSION 3
.Os
.Sh NAME
.Nm sqlite3_cancel_auto_extension
.Nd Cancel Automatic Extension Loading
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_cancel_auto_extension
.Fa "void (*xEntryPoint)(void)"
.Fa "void(*xEntryPoint)(void)"
.Fc
.Sh DESCRIPTION
The sqlite3_cancel_auto_extension(X)

View File

@ -0,0 +1,9 @@
.Dd March 11, 2017
.Dt SQLITE3_CHANGEGROUP 3
.Os
.Sh NAME
.Nm sqlite3_changegroup
.Nd Changegroup Handle
.Sh SYNOPSIS
.Vt typedef struct sqlite3_changegroup sqlite3_changegroup;
.Sh DESCRIPTION

View File

@ -1,11 +1,11 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_CHANGES 3
.Os
.Sh NAME
.Nm sqlite3_changes
.Nd Count The Number Of Rows Modified
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_changes
.Fa "sqlite3*"
.Fc

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_CHANGESET_ITER 3
.Os
.Sh NAME

View File

@ -1,11 +1,11 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_CLEAR_BINDINGS 3
.Os
.Sh NAME
.Nm sqlite3_clear_bindings
.Nd Reset All Bindings On A Prepared Statement
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_clear_bindings
.Fa "sqlite3_stmt*"
.Fc

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_CLOSE 3
.Os
.Sh NAME
@ -6,11 +6,11 @@
.Nm sqlite3_close_v2
.Nd Closing A Database Connection
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_close
.Fa "sqlite3*"
.Fc
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_close_v2
.Fa "sqlite3*"
.Fc

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_COLLATION_NEEDED 3
.Os
.Sh NAME
@ -6,13 +6,13 @@
.Nm sqlite3_collation_needed16
.Nd Collation Needed Callbacks
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_collation_needed
.Fa "sqlite3*"
.Fa "void*"
.Fa "void(*)(void*,sqlite3*,int eTextRep,const char*) "
.Fc
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_collation_needed16
.Fa "sqlite3*"
.Fa "void*"

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_COLUMN_BLOB 3
.Os
.Sh NAME
@ -14,52 +14,52 @@
.Nm sqlite3_column_value
.Nd Result Values From A Query
.Sh SYNOPSIS
.Ft const void *SQLITE_STDCALL
.Ft const void *
.Fo sqlite3_column_blob
.Fa "sqlite3_stmt*"
.Fa "int iCol"
.Fc
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_column_bytes
.Fa "sqlite3_stmt*"
.Fa "int iCol"
.Fc
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_column_bytes16
.Fa "sqlite3_stmt*"
.Fa "int iCol"
.Fc
.Ft double SQLITE_STDCALL
.Ft double
.Fo sqlite3_column_double
.Fa "sqlite3_stmt*"
.Fa "int iCol"
.Fc
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_column_int
.Fa "sqlite3_stmt*"
.Fa "int iCol"
.Fc
.Ft sqlite3_int64 SQLITE_STDCALL
.Ft sqlite3_int64
.Fo sqlite3_column_int64
.Fa "sqlite3_stmt*"
.Fa "int iCol"
.Fc
.Ft const unsigned char *SQLITE_STDCALL
.Ft const unsigned char *
.Fo sqlite3_column_text
.Fa "sqlite3_stmt*"
.Fa "int iCol"
.Fc
.Ft const void *SQLITE_STDCALL
.Ft const void *
.Fo sqlite3_column_text16
.Fa "sqlite3_stmt*"
.Fa "int iCol"
.Fc
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_column_type
.Fa "sqlite3_stmt*"
.Fa "int iCol"
.Fc
.Ft sqlite3_value *SQLITE_STDCALL
.Ft sqlite3_value *
.Fo sqlite3_column_value
.Fa "sqlite3_stmt*"
.Fa "int iCol"

View File

@ -1,18 +1,23 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_COLUMN_COUNT 3
.Os
.Sh NAME
.Nm sqlite3_column_count
.Nd Number Of Columns In A Result Set
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_column_count
.Fa "sqlite3_stmt *pStmt"
.Fc
.Sh DESCRIPTION
Return the number of columns in the result set returned by the prepared statement.
This routine returns 0 if pStmt is an SQL statement that does not return
data (for example an UPDATE).
If this routine returns 0, that means the prepared statement
returns no data (for example an UPDATE).
However, just because this routine returns a positive number does not
mean that one or more rows of data will be returned.
A SELECT statement will always have a positive sqlite3_column_count()
but depending on the WHERE clause constraints and the table content,
it might return no rows.
.Pp
.Sh SEE ALSO
.Xr sqlite3_stmt 3 ,

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_COLUMN_DATABASE_NAME 3
.Os
.Sh NAME
@ -10,32 +10,32 @@
.Nm sqlite3_column_origin_name16
.Nd Source Of Data In A Query Result
.Sh SYNOPSIS
.Ft const char *SQLITE_STDCALL
.Ft const char *
.Fo sqlite3_column_database_name
.Fa "sqlite3_stmt*"
.Fa "int"
.Fc
.Ft const void *SQLITE_STDCALL
.Ft const void *
.Fo sqlite3_column_database_name16
.Fa "sqlite3_stmt*"
.Fa "int"
.Fc
.Ft const char *SQLITE_STDCALL
.Ft const char *
.Fo sqlite3_column_table_name
.Fa "sqlite3_stmt*"
.Fa "int"
.Fc
.Ft const void *SQLITE_STDCALL
.Ft const void *
.Fo sqlite3_column_table_name16
.Fa "sqlite3_stmt*"
.Fa "int"
.Fc
.Ft const char *SQLITE_STDCALL
.Ft const char *
.Fo sqlite3_column_origin_name
.Fa "sqlite3_stmt*"
.Fa "int"
.Fc
.Ft const void *SQLITE_STDCALL
.Ft const void *
.Fo sqlite3_column_origin_name16
.Fa "sqlite3_stmt*"
.Fa "int"

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_COLUMN_DECLTYPE 3
.Os
.Sh NAME
@ -6,12 +6,12 @@
.Nm sqlite3_column_decltype16
.Nd Declared Datatype Of A Query Result
.Sh SYNOPSIS
.Ft const char *SQLITE_STDCALL
.Ft const char *
.Fo sqlite3_column_decltype
.Fa "sqlite3_stmt*"
.Fa "int"
.Fc
.Ft const void *SQLITE_STDCALL
.Ft const void *
.Fo sqlite3_column_decltype16
.Fa "sqlite3_stmt*"
.Fa "int"

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_COLUMN_NAME 3
.Os
.Sh NAME
@ -6,12 +6,12 @@
.Nm sqlite3_column_name16
.Nd Column Names In A Result Set
.Sh SYNOPSIS
.Ft const char *SQLITE_STDCALL
.Ft const char *
.Fo sqlite3_column_name
.Fa "sqlite3_stmt*"
.Fa "int N"
.Fc
.Ft const void *SQLITE_STDCALL
.Ft const void *
.Fo sqlite3_column_name16
.Fa "sqlite3_stmt*"
.Fa "int N"

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_COMMIT_HOOK 3
.Os
.Sh NAME
@ -6,13 +6,13 @@
.Nm sqlite3_rollback_hook
.Nd Commit And Rollback Notification Callbacks
.Sh SYNOPSIS
.Ft void *SQLITE_STDCALL
.Ft void *
.Fo sqlite3_commit_hook
.Fa "sqlite3*"
.Fa "int(*)(void*)"
.Fa "void*"
.Fc
.Ft void *SQLITE_STDCALL
.Ft void *
.Fo sqlite3_rollback_hook
.Fa "sqlite3*"
.Fa "void(*)(void *)"

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_COMPILEOPTION_USED 3
.Os
.Sh NAME
@ -6,11 +6,11 @@
.Nm sqlite3_compileoption_get
.Nd Run-Time Library Compilation Options Diagnostics
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_compileoption_used
.Fa "const char *zOptName"
.Fc
.Ft const char *SQLITE_STDCALL
.Ft const char *
.Fo sqlite3_compileoption_get
.Fa "int N"
.Fc

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_COMPLETE 3
.Os
.Sh NAME
@ -6,11 +6,11 @@
.Nm sqlite3_complete16
.Nd Determine If An SQL Statement Is Complete
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_complete
.Fa "const char *sql"
.Fc
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_complete16
.Fa "const void *sql"
.Fc

View File

@ -1,11 +1,11 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_CONFIG 3
.Os
.Sh NAME
.Nm sqlite3_config
.Nd Configuring The SQLite Library
.Sh SYNOPSIS
.Ft int SQLITE_CDECL
.Ft int
.Fo sqlite3_config
.Fa "int"
.Fa "..."

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_CONTEXT 3
.Os
.Sh NAME

View File

@ -1,11 +1,11 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_CONTEXT_DB_HANDLE 3
.Os
.Sh NAME
.Nm sqlite3_context_db_handle
.Nd Database Connection For Functions
.Sh SYNOPSIS
.Ft sqlite3 *SQLITE_STDCALL
.Ft sqlite3 *
.Fo sqlite3_context_db_handle
.Fa "sqlite3_context*"
.Fc

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_CREATE_COLLATION 3
.Os
.Sh NAME
@ -7,7 +7,7 @@
.Nm sqlite3_create_collation16
.Nd Define New Collating Sequences
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_create_collation
.Fa "sqlite3*"
.Fa "const char *zName"
@ -15,7 +15,7 @@
.Fa "void *pArg"
.Fa "int(*xCompare)(void*,int,const void*,int,const void*) "
.Fc
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_create_collation_v2
.Fa "sqlite3*"
.Fa "const char *zName"
@ -24,7 +24,7 @@
.Fa "int(*xCompare)(void*,int,const void*,int,const void*)"
.Fa "void(*xDestroy)(void*) "
.Fc
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_create_collation16
.Fa "sqlite3*"
.Fa "const void *zName"

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_CREATE_FUNCTION 3
.Os
.Sh NAME
@ -7,7 +7,7 @@
.Nm sqlite3_create_function_v2
.Nd Create Or Redefine SQL Functions
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_create_function
.Fa "sqlite3 *db"
.Fa "const char *zFunctionName"
@ -18,7 +18,7 @@
.Fa "void (*xStep)(sqlite3_context*,int,sqlite3_value**)"
.Fa "void (*xFinal)(sqlite3_context*) "
.Fc
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_create_function16
.Fa "sqlite3 *db"
.Fa "const void *zFunctionName"
@ -29,7 +29,7 @@
.Fa "void (*xStep)(sqlite3_context*,int,sqlite3_value**)"
.Fa "void (*xFinal)(sqlite3_context*) "
.Fc
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_create_function_v2
.Fa "sqlite3 *db"
.Fa "const char *zFunctionName"

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_CREATE_MODULE 3
.Os
.Sh NAME
@ -6,14 +6,14 @@
.Nm sqlite3_create_module_v2
.Nd Register A Virtual Table Implementation
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_create_module
.Fa "sqlite3 *db"
.Fa "const char *zName"
.Fa "const sqlite3_module *p"
.Fa "void *pClientData "
.Fc
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_create_module_v2
.Fa "sqlite3 *db"
.Fa "const char *zName"

View File

@ -1,11 +1,11 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_DATA_COUNT 3
.Os
.Sh NAME
.Nm sqlite3_data_count
.Nd Number of columns in a result set
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_data_count
.Fa "sqlite3_stmt *pStmt"
.Fc

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_DATA_DIRECTORY 3
.Os
.Sh NAME

View File

@ -1,11 +1,11 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_DB_CACHEFLUSH 3
.Os
.Sh NAME
.Nm sqlite3_db_cacheflush
.Nd Flush caches to disk mid-transaction
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_db_cacheflush
.Fa "sqlite3*"
.Fc

View File

@ -1,11 +1,11 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_DB_CONFIG 3
.Os
.Sh NAME
.Nm sqlite3_db_config
.Nd Configure database connections
.Sh SYNOPSIS
.Ft int SQLITE_CDECL
.Ft int
.Fo sqlite3_db_config
.Fa "sqlite3*"
.Fa "int op"
@ -28,4 +28,4 @@ is considered successful.
.Sh SEE ALSO
.Xr sqlite3 3 ,
.Xr sqlite3_config 3 ,
.Xr SQLITE_DBCONFIG_LOOKASIDE 3
.Xr SQLITE_DBCONFIG_MAINDBNAME 3

View File

@ -1,11 +1,11 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_DB_FILENAME 3
.Os
.Sh NAME
.Nm sqlite3_db_filename
.Nd Return The Filename For A Database Connection
.Sh SYNOPSIS
.Ft const char *SQLITE_STDCALL
.Ft const char *
.Fo sqlite3_db_filename
.Fa "sqlite3 *db"
.Fa "const char *zDbName"

View File

@ -1,11 +1,11 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_DB_HANDLE 3
.Os
.Sh NAME
.Nm sqlite3_db_handle
.Nd Find The Database Handle Of A Prepared Statement
.Sh SYNOPSIS
.Ft sqlite3 *SQLITE_STDCALL
.Ft sqlite3 *
.Fo sqlite3_db_handle
.Fa "sqlite3_stmt*"
.Fc

View File

@ -1,11 +1,11 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_DB_MUTEX 3
.Os
.Sh NAME
.Nm sqlite3_db_mutex
.Nd Retrieve the mutex for a database connection
.Sh SYNOPSIS
.Ft sqlite3_mutex *SQLITE_STDCALL
.Ft sqlite3_mutex *
.Fo sqlite3_db_mutex
.Fa "sqlite3*"
.Fc

View File

@ -1,11 +1,11 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_DB_READONLY 3
.Os
.Sh NAME
.Nm sqlite3_db_readonly
.Nd Determine if a database is read-only
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_db_readonly
.Fa "sqlite3 *db"
.Fa "const char *zDbName"

View File

@ -1,11 +1,11 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_DB_RELEASE_MEMORY 3
.Os
.Sh NAME
.Nm sqlite3_db_release_memory
.Nd Free Memory Used By A Database Connection
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_db_release_memory
.Fa "sqlite3*"
.Fc

View File

@ -1,11 +1,11 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_DB_STATUS 3
.Os
.Sh NAME
.Nm sqlite3_db_status
.Nd Database Connection Status
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_db_status
.Fa "sqlite3*"
.Fa "int op"

View File

@ -1,11 +1,11 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_DECLARE_VTAB 3
.Os
.Sh NAME
.Nm sqlite3_declare_vtab
.Nd Declare The Schema Of A Virtual Table
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_declare_vtab
.Fa "sqlite3*"
.Fa "const char *zSQL"

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_DESTRUCTOR_TYPE 3
.Os
.Sh NAME

View File

@ -1,11 +1,11 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_ENABLE_LOAD_EXTENSION 3
.Os
.Sh NAME
.Nm sqlite3_enable_load_extension
.Nd Enable Or Disable Extension Loading
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_enable_load_extension
.Fa "sqlite3 *db"
.Fa "int onoff"
@ -36,4 +36,4 @@ loading capabilities.
.Sh SEE ALSO
.Xr sqlite3_db_config 3 ,
.Xr sqlite3_load_extension 3 ,
.Xr SQLITE_DBCONFIG_LOOKASIDE 3
.Xr SQLITE_DBCONFIG_MAINDBNAME 3

View File

@ -1,11 +1,11 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_ENABLE_SHARED_CACHE 3
.Os
.Sh NAME
.Nm sqlite3_enable_shared_cache
.Nd Enable Or Disable Shared Pager Cache
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_enable_shared_cache
.Fa "int"
.Fc
@ -17,7 +17,7 @@ Sharing is enabled if the argument is true and disabled if the argument
is false.
.Pp
Cache sharing is enabled and disabled for an entire process.
This is a change as of SQLite version 3.5.0.
This is a change as of SQLite version 3.5.0 (dateof:3.5.0).
In prior versions of SQLite, sharing was enabled or disabled for each
thread separately.
.Pp

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_ERRCODE 3
.Os
.Sh NAME
@ -9,23 +9,23 @@
.Nm sqlite3_errstr
.Nd Error Codes And Messages
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_errcode
.Fa "sqlite3 *db"
.Fc
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_extended_errcode
.Fa "sqlite3 *db"
.Fc
.Ft const char *SQLITE_STDCALL
.Ft const char *
.Fo sqlite3_errmsg
.Fa "sqlite3*"
.Fc
.Ft const void *SQLITE_STDCALL
.Ft const void *
.Fo sqlite3_errmsg16
.Fa "sqlite3*"
.Fc
.Ft const char *SQLITE_STDCALL
.Ft const char *
.Fo sqlite3_errstr
.Fa "int"
.Fc

View File

@ -1,11 +1,11 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_EXEC 3
.Os
.Sh NAME
.Nm sqlite3_exec
.Nd One-Step Query Execution Interface
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_exec
.Fa "sqlite3*"
.Fa "const char *sql"

View File

@ -1,11 +1,11 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_EXTENDED_RESULT_CODES 3
.Os
.Sh NAME
.Nm sqlite3_extended_result_codes
.Nd Enable Or Disable Extended Result Codes
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_extended_result_codes
.Fa "sqlite3*"
.Fa "int onoff"

View File

@ -1,4 +1,4 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_FILE 3
.Os
.Sh NAME

View File

@ -1,11 +1,11 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_FILE_CONTROL 3
.Os
.Sh NAME
.Nm sqlite3_file_control
.Nd Low-Level Control Of Database Files
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_file_control
.Fa "sqlite3*"
.Fa "const char *zDbName"

View File

@ -1,11 +1,11 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_FINALIZE 3
.Os
.Sh NAME
.Nm sqlite3_finalize
.Nd Destroy A Prepared Statement Object
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_finalize
.Fa "sqlite3_stmt *pStmt"
.Fc

View File

@ -1,11 +1,11 @@
.Dd December 18, 2016
.Dd March 11, 2017
.Dt SQLITE3_GET_AUTOCOMMIT 3
.Os
.Sh NAME
.Nm sqlite3_get_autocommit
.Nd Test For Auto-Commit Mode
.Sh SYNOPSIS
.Ft int SQLITE_STDCALL
.Ft int
.Fo sqlite3_get_autocommit
.Fa "sqlite3*"
.Fc

Some files were not shown because too many files have changed in this diff Show More