/ Check-in [31376242]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Documentation stubs for sqlite3_wal_autocheckpoint and sqlite3_wal_checkpoint.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 313762427d96954667909887a797ea996dc6304a
User & Date: drh 2010-05-03 18:51:42
Context
2010-05-03
19:17
Fix a bug in the computation of the current time for the alternative CURRENT_TIMESTAMP functions used when SQLITE_OMIT_DATETIME is defined. check-in: e7ded46b user: drh tags: trunk
18:51
Documentation stubs for sqlite3_wal_autocheckpoint and sqlite3_wal_checkpoint. check-in: 31376242 user: drh tags: trunk
18:22
Fix a bug in the xCurrentTime() method of the os_unix.c VFS. check-in: 551df11a user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/sqlite.h.in.

5792
5793
5794
5795
5796
5797
5798













5799
5800
5801
5802
5803





5804
5805
5806
5807
5808
5809
5810
  sqlite3*, 
  int(*)(void *,sqlite3*,const char*,int),
  void*
);

/*
** CAPI3REF: Configure an auto-checkpoint













*/
int sqlite3_wal_autocheckpoint(sqlite3 *db, int N);

/*
** CAPI3REF: Checkpoint a database





*/
int sqlite3_wal_checkpoint(sqlite3 *db, const char *zDb);

/*
** Undo the hack that converts floating point types to integer for
** builds on processors without floating point support.
*/







>
>
>
>
>
>
>
>
>
>
>
>
>





>
>
>
>
>







5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
  sqlite3*, 
  int(*)(void *,sqlite3*,const char*,int),
  void*
);

/*
** CAPI3REF: Configure an auto-checkpoint
**
** The [sqlite3_wal_autocheckpoint(D,N)] is a wrapper around
** [sqlite3_wal_hook()] that causes any database on [database connection] D
** to automatically checkpoint
** after committing a transaction if there are N or
** more frames in the write-ahead-log file.  Passing zero or 
** a negative value as the nFrame parameter disables automatic
** checkpoints entirely.
**
** The callback registered by this function replaces any existing callback
** registered using [sqlite3_wal_hook()]. Likewise, registering a callback
** using [sqlite3_wal_hook()] disables the automatic checkpoint mechanism
** configured by this function.
*/
int sqlite3_wal_autocheckpoint(sqlite3 *db, int N);

/*
** CAPI3REF: Checkpoint a database
**
** The [sqlite3_wal_checkpoint(D,X)] interface causes database named X
** on [database connection] D to be checkpointed.  If X is NULL or an
** empty string, then a checkpoint is run on all databases of
** connection D.
*/
int sqlite3_wal_checkpoint(sqlite3 *db, const char *zDb);

/*
** Undo the hack that converts floating point types to integer for
** builds on processors without floating point support.
*/