mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Enhance the sessions documentation to show the methods of the various objects.
FossilOrigin-Name: e01177754ad6d9e2d38adddddd2e2e212094dac1154bda5fcee61ca8b678ae0f
This commit is contained in:
@ -13,16 +13,23 @@ extern "C" {
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
** CAPI3REF: Session Object Handle
|
** CAPI3REF: Session Object Handle
|
||||||
|
**
|
||||||
|
** An instance of this object is a [session] that can be used to
|
||||||
|
** record changes to a database.
|
||||||
*/
|
*/
|
||||||
typedef struct sqlite3_session sqlite3_session;
|
typedef struct sqlite3_session sqlite3_session;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** CAPI3REF: Changeset Iterator Handle
|
** CAPI3REF: Changeset Iterator Handle
|
||||||
|
**
|
||||||
|
** An instance of this object is as as a cursor for iterating
|
||||||
|
** over the elements of a [changeset] or [patchset].
|
||||||
*/
|
*/
|
||||||
typedef struct sqlite3_changeset_iter sqlite3_changeset_iter;
|
typedef struct sqlite3_changeset_iter sqlite3_changeset_iter;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** CAPI3REF: Create A New Session Object
|
** CAPI3REF: Create A New Session Object
|
||||||
|
** CONSTRUCTOR: sqlite3_session
|
||||||
**
|
**
|
||||||
** Create a new session object attached to database handle db. If successful,
|
** Create a new session object attached to database handle db. If successful,
|
||||||
** a pointer to the new object is written to *ppSession and SQLITE_OK is
|
** a pointer to the new object is written to *ppSession and SQLITE_OK is
|
||||||
@ -59,6 +66,7 @@ int sqlite3session_create(
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
** CAPI3REF: Delete A Session Object
|
** CAPI3REF: Delete A Session Object
|
||||||
|
** DESTRUCTOR: sqlite3_session
|
||||||
**
|
**
|
||||||
** Delete a session object previously allocated using
|
** Delete a session object previously allocated using
|
||||||
** [sqlite3session_create()]. Once a session object has been deleted, the
|
** [sqlite3session_create()]. Once a session object has been deleted, the
|
||||||
@ -74,6 +82,7 @@ void sqlite3session_delete(sqlite3_session *pSession);
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
** CAPI3REF: Enable Or Disable A Session Object
|
** CAPI3REF: Enable Or Disable A Session Object
|
||||||
|
** METHOD: sqlite3_session
|
||||||
**
|
**
|
||||||
** Enable or disable the recording of changes by a session object. When
|
** Enable or disable the recording of changes by a session object. When
|
||||||
** enabled, a session object records changes made to the database. When
|
** enabled, a session object records changes made to the database. When
|
||||||
@ -93,6 +102,7 @@ int sqlite3session_enable(sqlite3_session *pSession, int bEnable);
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
** CAPI3REF: Set Or Clear the Indirect Change Flag
|
** CAPI3REF: Set Or Clear the Indirect Change Flag
|
||||||
|
** METHOD: sqlite3_session
|
||||||
**
|
**
|
||||||
** Each change recorded by a session object is marked as either direct or
|
** Each change recorded by a session object is marked as either direct or
|
||||||
** indirect. A change is marked as indirect if either:
|
** indirect. A change is marked as indirect if either:
|
||||||
@ -122,6 +132,7 @@ int sqlite3session_indirect(sqlite3_session *pSession, int bIndirect);
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
** CAPI3REF: Attach A Table To A Session Object
|
** CAPI3REF: Attach A Table To A Session Object
|
||||||
|
** METHOD: sqlite3_session
|
||||||
**
|
**
|
||||||
** If argument zTab is not NULL, then it is the name of a table to attach
|
** If argument zTab is not NULL, then it is the name of a table to attach
|
||||||
** to the session object passed as the first argument. All subsequent changes
|
** to the session object passed as the first argument. All subsequent changes
|
||||||
@ -184,6 +195,7 @@ int sqlite3session_attach(
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
** CAPI3REF: Set a table filter on a Session Object.
|
** CAPI3REF: Set a table filter on a Session Object.
|
||||||
|
** METHOD: sqlite3_session
|
||||||
**
|
**
|
||||||
** The second argument (xFilter) is the "filter callback". For changes to rows
|
** The second argument (xFilter) is the "filter callback". For changes to rows
|
||||||
** in tables that are not attached to the Session object, the filter is called
|
** in tables that are not attached to the Session object, the filter is called
|
||||||
@ -202,6 +214,7 @@ void sqlite3session_table_filter(
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
** CAPI3REF: Generate A Changeset From A Session Object
|
** CAPI3REF: Generate A Changeset From A Session Object
|
||||||
|
** METHOD: sqlite3_session
|
||||||
**
|
**
|
||||||
** Obtain a changeset containing changes to the tables attached to the
|
** Obtain a changeset containing changes to the tables attached to the
|
||||||
** session object passed as the first argument. If successful,
|
** session object passed as the first argument. If successful,
|
||||||
@ -312,6 +325,7 @@ int sqlite3session_changeset(
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
** CAPI3REF: Load The Difference Between Tables Into A Session
|
** CAPI3REF: Load The Difference Between Tables Into A Session
|
||||||
|
** METHOD: sqlite3_session
|
||||||
**
|
**
|
||||||
** If it is not already attached to the session object passed as the first
|
** If it is not already attached to the session object passed as the first
|
||||||
** argument, this function attaches table zTbl in the same manner as the
|
** argument, this function attaches table zTbl in the same manner as the
|
||||||
@ -376,6 +390,7 @@ int sqlite3session_diff(
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
** CAPI3REF: Generate A Patchset From A Session Object
|
** CAPI3REF: Generate A Patchset From A Session Object
|
||||||
|
** METHOD: sqlite3_session
|
||||||
**
|
**
|
||||||
** The differences between a patchset and a changeset are that:
|
** The differences between a patchset and a changeset are that:
|
||||||
**
|
**
|
||||||
@ -427,6 +442,7 @@ int sqlite3session_isempty(sqlite3_session *pSession);
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
** CAPI3REF: Create An Iterator To Traverse A Changeset
|
** CAPI3REF: Create An Iterator To Traverse A Changeset
|
||||||
|
** CONSTRUCTOR: sqlite3_changeset_iter
|
||||||
**
|
**
|
||||||
** Create an iterator used to iterate through the contents of a changeset.
|
** Create an iterator used to iterate through the contents of a changeset.
|
||||||
** If successful, *pp is set to point to the iterator handle and SQLITE_OK
|
** If successful, *pp is set to point to the iterator handle and SQLITE_OK
|
||||||
@ -467,6 +483,7 @@ int sqlite3changeset_start(
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
** CAPI3REF: Advance A Changeset Iterator
|
** CAPI3REF: Advance A Changeset Iterator
|
||||||
|
** METHOD: sqlite3_changeset_iter
|
||||||
**
|
**
|
||||||
** This function may only be used with iterators created by function
|
** This function may only be used with iterators created by function
|
||||||
** [sqlite3changeset_start()]. If it is called on an iterator passed to
|
** [sqlite3changeset_start()]. If it is called on an iterator passed to
|
||||||
@ -491,6 +508,7 @@ int sqlite3changeset_next(sqlite3_changeset_iter *pIter);
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
** CAPI3REF: Obtain The Current Operation From A Changeset Iterator
|
** CAPI3REF: Obtain The Current Operation From A Changeset Iterator
|
||||||
|
** METHOD: sqlite3_changeset_iter
|
||||||
**
|
**
|
||||||
** The pIter argument passed to this function may either be an iterator
|
** The pIter argument passed to this function may either be an iterator
|
||||||
** passed to a conflict-handler by [sqlite3changeset_apply()], or an iterator
|
** passed to a conflict-handler by [sqlite3changeset_apply()], or an iterator
|
||||||
@ -525,6 +543,7 @@ int sqlite3changeset_op(
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
** CAPI3REF: Obtain The Primary Key Definition Of A Table
|
** CAPI3REF: Obtain The Primary Key Definition Of A Table
|
||||||
|
** METHOD: sqlite3_changeset_iter
|
||||||
**
|
**
|
||||||
** For each modified table, a changeset includes the following:
|
** For each modified table, a changeset includes the following:
|
||||||
**
|
**
|
||||||
@ -556,6 +575,7 @@ int sqlite3changeset_pk(
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
** CAPI3REF: Obtain old.* Values From A Changeset Iterator
|
** CAPI3REF: Obtain old.* Values From A Changeset Iterator
|
||||||
|
** METHOD: sqlite3_changeset_iter
|
||||||
**
|
**
|
||||||
** The pIter argument passed to this function may either be an iterator
|
** The pIter argument passed to this function may either be an iterator
|
||||||
** passed to a conflict-handler by [sqlite3changeset_apply()], or an iterator
|
** passed to a conflict-handler by [sqlite3changeset_apply()], or an iterator
|
||||||
@ -586,6 +606,7 @@ int sqlite3changeset_old(
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
** CAPI3REF: Obtain new.* Values From A Changeset Iterator
|
** CAPI3REF: Obtain new.* Values From A Changeset Iterator
|
||||||
|
** METHOD: sqlite3_changeset_iter
|
||||||
**
|
**
|
||||||
** The pIter argument passed to this function may either be an iterator
|
** The pIter argument passed to this function may either be an iterator
|
||||||
** passed to a conflict-handler by [sqlite3changeset_apply()], or an iterator
|
** passed to a conflict-handler by [sqlite3changeset_apply()], or an iterator
|
||||||
@ -619,6 +640,7 @@ int sqlite3changeset_new(
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
** CAPI3REF: Obtain Conflicting Row Values From A Changeset Iterator
|
** CAPI3REF: Obtain Conflicting Row Values From A Changeset Iterator
|
||||||
|
** METHOD: sqlite3_changeset_iter
|
||||||
**
|
**
|
||||||
** This function should only be used with iterator objects passed to a
|
** This function should only be used with iterator objects passed to a
|
||||||
** conflict-handler callback by [sqlite3changeset_apply()] with either
|
** conflict-handler callback by [sqlite3changeset_apply()] with either
|
||||||
@ -646,6 +668,7 @@ int sqlite3changeset_conflict(
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
** CAPI3REF: Determine The Number Of Foreign Key Constraint Violations
|
** CAPI3REF: Determine The Number Of Foreign Key Constraint Violations
|
||||||
|
** METHOD: sqlite3_changeset_iter
|
||||||
**
|
**
|
||||||
** This function may only be called with an iterator passed to an
|
** This function may only be called with an iterator passed to an
|
||||||
** SQLITE_CHANGESET_FOREIGN_KEY conflict handler callback. In this case
|
** SQLITE_CHANGESET_FOREIGN_KEY conflict handler callback. In this case
|
||||||
@ -662,6 +685,7 @@ int sqlite3changeset_fk_conflicts(
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
** CAPI3REF: Finalize A Changeset Iterator
|
** CAPI3REF: Finalize A Changeset Iterator
|
||||||
|
** METHOD: sqlite3_changeset_iter
|
||||||
**
|
**
|
||||||
** This function is used to finalize an iterator allocated with
|
** This function is used to finalize an iterator allocated with
|
||||||
** [sqlite3changeset_start()].
|
** [sqlite3changeset_start()].
|
||||||
@ -762,11 +786,15 @@ int sqlite3changeset_concat(
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
** CAPI3REF: Changegroup Handle
|
** CAPI3REF: Changegroup Handle
|
||||||
|
**
|
||||||
|
** A changegroup is an object used to combine two or more
|
||||||
|
** [changesets] or [patchsets]
|
||||||
*/
|
*/
|
||||||
typedef struct sqlite3_changegroup sqlite3_changegroup;
|
typedef struct sqlite3_changegroup sqlite3_changegroup;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** CAPI3REF: Create A New Changegroup Object
|
** CAPI3REF: Create A New Changegroup Object
|
||||||
|
** CONSTRUCTOR: sqlite3_changegroup
|
||||||
**
|
**
|
||||||
** An sqlite3_changegroup object is used to combine two or more changesets
|
** An sqlite3_changegroup object is used to combine two or more changesets
|
||||||
** (or patchsets) into a single changeset (or patchset). A single changegroup
|
** (or patchsets) into a single changeset (or patchset). A single changegroup
|
||||||
@ -804,6 +832,7 @@ int sqlite3changegroup_new(sqlite3_changegroup **pp);
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
** CAPI3REF: Add A Changeset To A Changegroup
|
** CAPI3REF: Add A Changeset To A Changegroup
|
||||||
|
** METHOD: sqlite3_changegroup
|
||||||
**
|
**
|
||||||
** Add all changes within the changeset (or patchset) in buffer pData (size
|
** Add all changes within the changeset (or patchset) in buffer pData (size
|
||||||
** nData bytes) to the changegroup.
|
** nData bytes) to the changegroup.
|
||||||
@ -881,6 +910,7 @@ int sqlite3changegroup_add(sqlite3_changegroup*, int nData, void *pData);
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
** CAPI3REF: Obtain A Composite Changeset From A Changegroup
|
** CAPI3REF: Obtain A Composite Changeset From A Changegroup
|
||||||
|
** METHOD: sqlite3_changegroup
|
||||||
**
|
**
|
||||||
** Obtain a buffer containing a changeset (or patchset) representing the
|
** Obtain a buffer containing a changeset (or patchset) representing the
|
||||||
** current contents of the changegroup. If the inputs to the changegroup
|
** current contents of the changegroup. If the inputs to the changegroup
|
||||||
@ -911,6 +941,7 @@ int sqlite3changegroup_output(
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
** CAPI3REF: Delete A Changegroup Object
|
** CAPI3REF: Delete A Changegroup Object
|
||||||
|
** DESTRUCTOR: sqlite3_changegroup
|
||||||
*/
|
*/
|
||||||
void sqlite3changegroup_delete(sqlite3_changegroup*);
|
void sqlite3changegroup_delete(sqlite3_changegroup*);
|
||||||
|
|
||||||
|
12
manifest
12
manifest
@ -1,5 +1,5 @@
|
|||||||
C Use\s<pre>\saround\scode\ssnippets\sin\sthe\sdocumentation\sfor\ssessions\ninterfaces.\s\sThis\sis\sa\sdocumentation\schange\sonly\swith\sno\schanges\sto\scode.
|
C Enhance\sthe\ssessions\sdocumentation\sto\sshow\sthe\smethods\sof\sthe\svarious\sobjects.
|
||||||
D 2018-02-28T21:50:00.053
|
D 2018-02-28T22:21:29.549
|
||||||
F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1
|
F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1
|
||||||
F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea
|
F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea
|
||||||
F Makefile.in a2d2fb8d17c39ab5ec52beb27850b903949080848236923f436156b72a958737
|
F Makefile.in a2d2fb8d17c39ab5ec52beb27850b903949080848236923f436156b72a958737
|
||||||
@ -403,7 +403,7 @@ F ext/session/sessionfault2.test 04aa0bc9aa70ea43d8de82c4f648db4de1e990b0
|
|||||||
F ext/session/sessionstat1.test 41cd97c2e48619a41cdf8ae749e1b25f34719de638689221aa43971be693bf4e
|
F ext/session/sessionstat1.test 41cd97c2e48619a41cdf8ae749e1b25f34719de638689221aa43971be693bf4e
|
||||||
F ext/session/sessionwor.test 2f3744236dc8b170a695b7d8ddc8c743c7e79fdc
|
F ext/session/sessionwor.test 2f3744236dc8b170a695b7d8ddc8c743c7e79fdc
|
||||||
F ext/session/sqlite3session.c a5b7aed647abe7e366254b755597fce3f2719d82c98990cb0e1e07a3d203fe2b
|
F ext/session/sqlite3session.c a5b7aed647abe7e366254b755597fce3f2719d82c98990cb0e1e07a3d203fe2b
|
||||||
F ext/session/sqlite3session.h 357b889d5d1be268bd39bce9df8d28fb4afc88c35b5ebf62dad6aeb725d3f37e
|
F ext/session/sqlite3session.h b4de978c24a48a0d9b3b92ddfb749f4b07461766325ee950f5ecb8384c10606f
|
||||||
F ext/session/test_session.c eb0bd6c1ea791c1d66ee4ef94c16500dad936386
|
F ext/session/test_session.c eb0bd6c1ea791c1d66ee4ef94c16500dad936386
|
||||||
F ext/userauth/sqlite3userauth.h 7f3ea8c4686db8e40b0a0e7a8e0b00fac13aa7a3
|
F ext/userauth/sqlite3userauth.h 7f3ea8c4686db8e40b0a0e7a8e0b00fac13aa7a3
|
||||||
F ext/userauth/user-auth.txt e6641021a9210364665fe625d067617d03f27b04
|
F ext/userauth/user-auth.txt e6641021a9210364665fe625d067617d03f27b04
|
||||||
@ -1708,7 +1708,7 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93
|
|||||||
F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
|
F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
|
||||||
F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
|
F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
|
||||||
F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
|
F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
|
||||||
P 48775ec693c21927ff26448acc614dd67d56240fa263499da2a9fe405c546c32
|
P c949b915e893e917315ce21092d4c4bbd3e1b88d5326928f71dcc2f18f300702
|
||||||
R 534465c4041022fe3e1312b87af4cd46
|
R 6f69334171b7b3454d79aa33bdfe9b61
|
||||||
U drh
|
U drh
|
||||||
Z d5651a3a39c99623b3bbaa536731261b
|
Z 67038639e12c985c1bd40cee53ce76b7
|
||||||
|
@ -1 +1 @@
|
|||||||
c949b915e893e917315ce21092d4c4bbd3e1b88d5326928f71dcc2f18f300702
|
e01177754ad6d9e2d38adddddd2e2e212094dac1154bda5fcee61ca8b678ae0f
|
Reference in New Issue
Block a user