mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-14 00:22:38 +03:00
More documentation spellcheck and cleanup. No changes to code. (CVS 5262)
FossilOrigin-Name: 47b7b05e55d35450a14250a00468dfbcf4bf49bb
This commit is contained in:
14
manifest
14
manifest
@@ -1,5 +1,5 @@
|
||||
C Remove\smutex2.test.\sIt\swill\sbe\sreplaced\slater\stoday\sby\spermutations.test.\s(CVS\s5261)
|
||||
D 2008-06-21T12:15:04
|
||||
C More\sdocumentation\sspellcheck\sand\scleanup.\sNo\schanges\sto\scode.\s(CVS\s5262)
|
||||
D 2008-06-21T13:35:57
|
||||
F Makefile.arm-wince-mingw32ce-gcc ac5f7b2cef0cd850d6f755ba6ee4ab961b1fadf7
|
||||
F Makefile.in ff6f90048555a0088f6a4b7406bed5e55a7c4eff
|
||||
F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654
|
||||
@@ -143,7 +143,7 @@ F src/printf.c 8b063da9dcde26b7c500a01444b718d86f21bc6e
|
||||
F src/random.c 5c754319d38abdd6acd74601ee0105504adc508a
|
||||
F src/select.c 8393c47a170923f40602622bfa59b8e7cbff9027
|
||||
F src/shell.c a12ea645271b7876c8f080146f48e20b00d367ec
|
||||
F src/sqlite.h.in b38a20988588df2467722d5e0be9a3e66bec7203
|
||||
F src/sqlite.h.in 06ec1a8643200b9760ffc3e61e99e869b7088f84
|
||||
F src/sqlite3ext.h f162a72daef5ebf8b211fe8c0ec96e85d22fbf9b
|
||||
F src/sqliteInt.h 005b2f0aa10acd20435b46d4a9f84e20855c6f35
|
||||
F src/sqliteLimit.h f435e728c6b620ef7312814d660a81f9356eb5c8
|
||||
@@ -599,7 +599,7 @@ F tool/speedtest16.c c8a9c793df96db7e4933f0852abb7a03d48f2e81
|
||||
F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff
|
||||
F tool/speedtest8.c 1dbced29de5f59ba2ebf877edcadf171540374d1
|
||||
F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
|
||||
P 8c457fb08b93aa1aa9f62d0ec31755d74416e16b
|
||||
R ba7419dbfecd1a68feccea2f76855031
|
||||
U danielk1977
|
||||
Z 32157deb1b7267717504f46d7018eab5
|
||||
P 98a6a0a30f16cbc60c655663b5895429a34da0ba
|
||||
R 80cc7d70c0f30496ee4b30619bfc84a6
|
||||
U mihailim
|
||||
Z eeec625e4e64aeb5ff5f877eeb54a003
|
||||
|
||||
@@ -1 +1 @@
|
||||
98a6a0a30f16cbc60c655663b5895429a34da0ba
|
||||
47b7b05e55d35450a14250a00468dfbcf4bf49bb
|
||||
157
src/sqlite.h.in
157
src/sqlite.h.in
@@ -30,7 +30,7 @@
|
||||
** the version number) and changes its name to "sqlite3.h" as
|
||||
** part of the build process.
|
||||
**
|
||||
** @(#) $Id: sqlite.h.in,v 1.344 2008/06/21 11:20:48 mihailim Exp $
|
||||
** @(#) $Id: sqlite.h.in,v 1.345 2008/06/21 13:35:57 mihailim Exp $
|
||||
*/
|
||||
#ifndef _SQLITE3_H_
|
||||
#define _SQLITE3_H_
|
||||
@@ -1845,9 +1845,8 @@ void sqlite3_free(void*);
|
||||
**
|
||||
** INVARIANTS:
|
||||
**
|
||||
** {F17371} The [sqlite3_memory_used()] routine returns the
|
||||
** number of bytes of memory currently outstanding
|
||||
** (malloced but not freed).
|
||||
** {F17371} The [sqlite3_memory_used()] routine returns the number of bytes
|
||||
** of memory currently outstanding (malloced but not freed).
|
||||
**
|
||||
** {F17373} The [sqlite3_memory_highwater()] routine returns the maximum
|
||||
** value of [sqlite3_memory_used()] since the high-water mark
|
||||
@@ -1909,7 +1908,7 @@ void sqlite3_randomness(int N, void *P);
|
||||
** compiled, or [SQLITE_DENY] to cause the entire SQL statement to be
|
||||
** rejected with an error. If the authorizer callback returns
|
||||
** any value other than [SQLITE_IGNORE], [SQLITE_OK], or [SQLITE_DENY]
|
||||
** then [sqlite3_prepare_v2()] or equivalent call that triggered
|
||||
** then the [sqlite3_prepare_v2()] or equivalent call that triggered
|
||||
** the authorizer will fail with an error message.
|
||||
**
|
||||
** When the callback returns [SQLITE_OK], that means the operation
|
||||
@@ -1924,13 +1923,12 @@ void sqlite3_randomness(int N, void *P);
|
||||
** return can be used to deny an untrusted user access to individual
|
||||
** columns of a table.
|
||||
**
|
||||
** The first parameter to the authorizer callback is a copy of
|
||||
** the third parameter to the sqlite3_set_authorizer() interface.
|
||||
** The second parameter to the callback is an integer
|
||||
** [SQLITE_COPY | action code] that specifies the particular action
|
||||
** to be authorized. The third through sixth
|
||||
** parameters to the callback are zero-terminated strings that contain
|
||||
** additional details about the action to be authorized.
|
||||
** The first parameter to the authorizer callback is a copy of the third
|
||||
** parameter to the sqlite3_set_authorizer() interface. The second parameter
|
||||
** to the callback is an integer [SQLITE_COPY | action code] that specifies
|
||||
** the particular action to be authorized. The third through sixth parameters
|
||||
** to the callback are zero-terminated strings that contain additional
|
||||
** details about the action to be authorized.
|
||||
**
|
||||
** An authorizer is used when [sqlite3_prepare | preparing]
|
||||
** SQL statements from an untrusted
|
||||
@@ -1964,16 +1962,16 @@ void sqlite3_randomness(int N, void *P);
|
||||
** authorizer callback with database connection D.
|
||||
**
|
||||
** {F12502} The authorizer callback is invoked as SQL statements are
|
||||
** being compiled
|
||||
** being compiled.
|
||||
**
|
||||
** {F12503} If the authorizer callback returns any value other than
|
||||
** [SQLITE_IGNORE], [SQLITE_OK], or [SQLITE_DENY] then
|
||||
** [SQLITE_IGNORE], [SQLITE_OK], or [SQLITE_DENY], then
|
||||
** the [sqlite3_prepare_v2()] or equivalent call that caused
|
||||
** the authorizer callback to run shall fail with an
|
||||
** [SQLITE_ERROR] error code and an appropriate error message.
|
||||
**
|
||||
** {F12504} When the authorizer callback returns [SQLITE_OK], the operation
|
||||
** described is coded normally.
|
||||
** described is processed normally.
|
||||
**
|
||||
** {F12505} When the authorizer callback returns [SQLITE_DENY], the
|
||||
** [sqlite3_prepare_v2()] or equivalent call that caused the
|
||||
@@ -1983,7 +1981,7 @@ void sqlite3_randomness(int N, void *P);
|
||||
**
|
||||
** {F12506} If the authorizer code (the 2nd parameter to the authorizer
|
||||
** callback) is [SQLITE_READ] and the authorizer callback returns
|
||||
** [SQLITE_IGNORE] then the prepared statement is constructed to
|
||||
** [SQLITE_IGNORE], then the prepared statement is constructed to
|
||||
** insert a NULL value in place of the table column that would have
|
||||
** been read if [SQLITE_OK] had been returned.
|
||||
**
|
||||
@@ -2002,7 +2000,7 @@ void sqlite3_randomness(int N, void *P);
|
||||
** zero-terminated strings that contain
|
||||
** additional details about the action to be authorized.
|
||||
**
|
||||
** {F12520} Each call to [sqlite3_set_authorizer()] overrides the
|
||||
** {F12520} Each call to [sqlite3_set_authorizer()] overrides
|
||||
** any previously installed authorizer.
|
||||
**
|
||||
** {F12521} A NULL authorizer means that no authorization
|
||||
@@ -2032,7 +2030,7 @@ int sqlite3_set_authorizer(
|
||||
** CAPI3REF: Authorizer Action Codes {F12550}
|
||||
**
|
||||
** The [sqlite3_set_authorizer()] interface registers a callback function
|
||||
** that is invoked to authorizer certain SQL statement actions. The
|
||||
** that is invoked to authorize certain SQL statement actions. The
|
||||
** second parameter to the callback is an integer code that specifies
|
||||
** what action is being authorized. These are the integer action codes that
|
||||
** the authorizer callback may be passed.
|
||||
@@ -2055,7 +2053,7 @@ int sqlite3_set_authorizer(
|
||||
** is being authorized.
|
||||
**
|
||||
** {F12552} The 3rd and 4th parameters to the
|
||||
** [sqlite3_set_authorizer | authorization callback function]
|
||||
** [sqlite3_set_authorizer | authorization callback]
|
||||
** will be parameters or NULL depending on which
|
||||
** [SQLITE_COPY | authorizer code] is used as the second parameter.
|
||||
**
|
||||
@@ -2183,19 +2181,20 @@ void *sqlite3_profile(sqlite3*,
|
||||
**
|
||||
** INVARIANTS:
|
||||
**
|
||||
** {F12911} The callback function registered by [sqlite3_progress_handler()]
|
||||
** {F12911} The callback function registered by sqlite3_progress_handler()
|
||||
** is invoked periodically during long running calls to
|
||||
** [sqlite3_step()].
|
||||
**
|
||||
** {F12912} The progress callback is invoked once for every N virtual
|
||||
** machine opcodes, where N is the second argument to
|
||||
** the [sqlite3_progress_handler()] call that registered
|
||||
** the callback. <todo>What if N is less than 1?</todo>
|
||||
** the callback. If N is less than 1, sqlite3_progress_handler()
|
||||
** acts as if a NULL progress handler had been specified.
|
||||
**
|
||||
** {F12913} The progress callback itself is identified by the third
|
||||
** argument to [sqlite3_progress_handler()].
|
||||
** argument to sqlite3_progress_handler().
|
||||
**
|
||||
** {F12914} The fourth argument [sqlite3_progress_handler()] is a
|
||||
** {F12914} The fourth argument to sqlite3_progress_handler() is a
|
||||
*** void pointer passed to the progress callback
|
||||
** function each time it is invoked.
|
||||
**
|
||||
@@ -2217,78 +2216,71 @@ void sqlite3_progress_handler(sqlite3*, int, int(*)(void*), void*);
|
||||
/*
|
||||
** CAPI3REF: Opening A New Database Connection {F12700}
|
||||
**
|
||||
** These routines open an SQLite database file whose name
|
||||
** is given by the filename argument.
|
||||
** The filename argument is interpreted as UTF-8
|
||||
** for [sqlite3_open()] and [sqlite3_open_v2()] and as UTF-16
|
||||
** in the native byte order for [sqlite3_open16()].
|
||||
** An [sqlite3*] handle is usually returned in *ppDb, even
|
||||
** if an error occurs. The only exception is if SQLite is unable
|
||||
** to allocate memory to hold the [sqlite3] object, a NULL will
|
||||
** be written into *ppDb instead of a pointer to the [sqlite3] object.
|
||||
** If the database is opened (and/or created)
|
||||
** successfully, then [SQLITE_OK] is returned. Otherwise an
|
||||
** error code is returned. The
|
||||
** These routines open an SQLite database file whose name is given by the
|
||||
** filename argument. The filename argument is interpreted as UTF-8 for
|
||||
** sqlite3_open() and sqlite3_open_v2() and as UTF-16 in the native byte
|
||||
** order for sqlite3_open16(). A [database connection] handle is usually
|
||||
** returned in *ppDb, even if an error occurs. The only exception is that
|
||||
** if SQLite is unable to allocate memory to hold the [sqlite3] object,
|
||||
** a NULL will be written into *ppDb instead of a pointer to the [sqlite3]
|
||||
** object. If the database is opened (and/or created) successfully, then
|
||||
** [SQLITE_OK] is returned. Otherwise an error code is returned. The
|
||||
** [sqlite3_errmsg()] or [sqlite3_errmsg16()] routines can be used to obtain
|
||||
** an English language description of the error.
|
||||
**
|
||||
** The default encoding for the database will be UTF-8 if
|
||||
** [sqlite3_open()] or [sqlite3_open_v2()] is called and
|
||||
** UTF-16 in the native byte order if [sqlite3_open16()] is used.
|
||||
** sqlite3_open() or sqlite3_open_v2() is called and
|
||||
** UTF-16 in the native byte order if sqlite3_open16() is used.
|
||||
**
|
||||
** Whether or not an error occurs when it is opened, resources
|
||||
** associated with the [sqlite3*] handle should be released by passing it
|
||||
** to [sqlite3_close()] when it is no longer required.
|
||||
** associated with the [database connection] handle should be released by
|
||||
** passing it to [sqlite3_close()] when it is no longer required.
|
||||
**
|
||||
** The [sqlite3_open_v2()] interface works like [sqlite3_open()]
|
||||
** The sqlite3_open_v2() interface works like sqlite3_open()
|
||||
** except that it accepts two additional parameters for additional control
|
||||
** over the new database connection. The flags parameter can be
|
||||
** one of:
|
||||
** over the new database connection. The flags parameter can be one of:
|
||||
**
|
||||
** <ol>
|
||||
** <li> [SQLITE_OPEN_READONLY]
|
||||
** <li> [SQLITE_OPEN_READWRITE]
|
||||
** <li> [SQLITE_OPEN_READWRITE] | [SQLITE_OPEN_CREATE]
|
||||
** </ol>
|
||||
** <dl>
|
||||
** <dt>[SQLITE_OPEN_READONLY]</dt>
|
||||
** <dd>The database is opened in read-only mode. If the database does not
|
||||
** already exist, an error is returned.</dd>
|
||||
**
|
||||
** The first value opens the database read-only.
|
||||
** If the database does not previously exist, an error is returned.
|
||||
** The second option opens
|
||||
** the database for reading and writing if possible, or reading only if
|
||||
** if the file is write protected. In either case the database
|
||||
** must already exist or an error is returned. The third option
|
||||
** opens the database for reading and writing and creates it if it does
|
||||
** not already exist.
|
||||
** The third options is behavior that is always used for [sqlite3_open()]
|
||||
** and [sqlite3_open16()].
|
||||
** <dt>[SQLITE_OPEN_READWRITE]</dt>
|
||||
** <dd>The database is opened for reading and writing if possible, or reading
|
||||
** only if the file is write protected by the operating system. In either
|
||||
** case the database must already exist, otherwise an error is returned.</dd>
|
||||
**
|
||||
** If the 3rd parameter to [sqlite3_open_v2()] is not one of the
|
||||
** <dt>[SQLITE_OPEN_READWRITE] | [SQLITE_OPEN_CREATE]</dt>
|
||||
** <dd>The database is opened for reading and writing, and is creates it if
|
||||
** it does not already exist. This is the behavior that is always used for
|
||||
** sqlite3_open() and sqlite3_open16().</dd>
|
||||
** </dl>
|
||||
**
|
||||
** If the 3rd parameter to sqlite3_open_v2() is not one of the
|
||||
** combinations shown above then the behavior is undefined.
|
||||
**
|
||||
** If the filename is ":memory:", then an private
|
||||
** in-memory database is created for the connection. This in-memory
|
||||
** database will vanish when the database connection is closed. Future
|
||||
** version of SQLite might make use of additional special filenames
|
||||
** that begin with the ":" character. It is recommended that
|
||||
** when a database filename really does begin with
|
||||
** ":" that you prefix the filename with a pathname like "./" to
|
||||
** avoid ambiguity.
|
||||
** If the filename is ":memory:", then a private, temporary in-memory database
|
||||
** is created for the connection. This in-memory database will vanish when
|
||||
** the database connection is closed. Future versions of SQLite might
|
||||
** make use of additional special filenames that begin with the ":" character.
|
||||
** It is recommended that when a database filename actually does begin with
|
||||
** a ":" character you should prefix the filename with a pathname such as
|
||||
** "./" to avoid ambiguity.
|
||||
**
|
||||
** If the filename is an empty string, then a private temporary
|
||||
** If the filename is an empty string, then a private, temporary
|
||||
** on-disk database will be created. This private database will be
|
||||
** automatically deleted as soon as the database connection is closed.
|
||||
**
|
||||
** The fourth parameter to sqlite3_open_v2() is the name of the
|
||||
** [sqlite3_vfs] object that defines the operating system
|
||||
** interface that the new database connection should use. If the
|
||||
** fourth parameter is a NULL pointer then the default [sqlite3_vfs]
|
||||
** object is used.
|
||||
** [sqlite3_vfs] object that defines the operating system interface that
|
||||
** the new database connection should use. If the fourth parameter is
|
||||
** a NULL pointer then the default [sqlite3_vfs] object is used.
|
||||
**
|
||||
** <b>Note to Windows users:</b> The encoding used for the filename argument
|
||||
** of [sqlite3_open()] and [sqlite3_open_v2()] must be UTF-8, not whatever
|
||||
** of sqlite3_open() and sqlite3_open_v2() must be UTF-8, not whatever
|
||||
** codepage is currently defined. Filenames containing international
|
||||
** characters must be converted to UTF-8 prior to passing them into
|
||||
** [sqlite3_open()] or [sqlite3_open_v2()].
|
||||
** sqlite3_open() or sqlite3_open_v2().
|
||||
**
|
||||
** INVARIANTS:
|
||||
**
|
||||
@@ -2348,18 +2340,15 @@ void sqlite3_progress_handler(sqlite3*, int, int(*)(void*), void*);
|
||||
** <todo>Is SQLITE_OPEN_CREATE|SQLITE_OPEN_READWRITE required
|
||||
** in sqlite3_open_v2()?</todo>
|
||||
**
|
||||
** {F12721} The [database connection] created by
|
||||
** [sqlite3_open_v2(F,D,G,V)] will use the
|
||||
** [sqlite3_vfs] object identified by the V parameter, or
|
||||
** the default [sqlite3_vfs] object is V is a NULL pointer.
|
||||
**
|
||||
** {F12723} Two [database connection | database connections] will share a common cache
|
||||
** if both were opened with the same VFS
|
||||
** while [sqlite3_enable_shared_cache | shared cache mode was enabled] and
|
||||
** if both filenames compare equal using memcmp()
|
||||
** after having been processed by the [sqlite3_vfs | xFullPathname] method of
|
||||
** the VFS.
|
||||
** {F12721} The [database connection] created by [sqlite3_open_v2(F,D,G,V)]
|
||||
** will use the [sqlite3_vfs] object identified by the V parameter,
|
||||
** or the default [sqlite3_vfs] object if V is a NULL pointer.
|
||||
**
|
||||
** {F12723} Two [database connection | database connections] will share
|
||||
** a common cache if both were opened with the same VFS while
|
||||
** [sqlite3_enable_shared_cache | shared cache mode was enabled] and
|
||||
** if both filenames compare equal using memcmp() after having been
|
||||
** processed by the [sqlite3_vfs | xFullPathname] method of the VFS.
|
||||
*/
|
||||
int sqlite3_open(
|
||||
const char *filename, /* Database filename (UTF-8) */
|
||||
|
||||
Reference in New Issue
Block a user