theSq3Lite 10.0
Loading...
Searching...
No Matches
Sq3FileC_TOR_C_API

Sq3FileC - various functions to create, initialize and destroy … More...

+ Collaboration diagram for Sq3FileC_TOR_C_API:

Functions

static SQ3_FILE libsq3lite::Sq3FileDatabaseObject (MK_STRN X)
 Database File Corresponding To A Journal …
 

Detailed Description

Sq3FileC - various functions to create, initialize and destroy …

Function Documentation

◆ Sq3FileDatabaseObject()

static SQ3_FILE libsq3lite::Sq3FileDatabaseObject ( MK_STRN X)
inlinestatic

Database File Corresponding To A Journal …

If X is the name of a rollback or WAL-mode journal file that is passed into the xOpen method of sqlite3_vfs, then Sq3FileDatabaseObject(X) returns a pointer to the Sq3FileC object that represents the main database file.

This routine is intended for use in custom VFS implementations only. It is not a general-purpose interface. The argument Sq3FileDatabaseObject(X) must be a filename pointer that has been passed into sqlite3_vfs.xOpen method where the flags parameter to xOpen contains one of the bits SQ3_OPEN_MAIN_JOURNAL or SQ3_OPEN_WAL. Any other use of this routine results in undefined and probably undesirable behavior.

Reference code from sqlite3:

SQLITE_API sqlite3_file *sqlite3_database_file_object(const char*);

Definition at line 34 of file Sq3FileC_sq3.h.

34 {
35 return Sq3FileC_ObjCreate(sqlite3_database_file_object(X));
36 }
+ Here is the caller graph for this function: