Updated: 2022/Sep/29

Please read Privacy Policy. It's for your privacy.


SQLITE3_DATABASE_FILE_OBJECT(3)                       Library Functions Manual

NAME
     sqlite3_database_file_object - database file corresponding to a journal

SYNOPSIS
     #include <sqlite3.h>

     sqlite3_file *
     sqlite3_database_file_object(const char*);

DESCRIPTION
     If X is the name of a rollback or WAL-mode journal file that is passed
     into the xOpen method of sqlite3_vfs, then
     sqlite3_database_file_object(X) returns a pointer to the sqlite3_file
     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 sqlite3_file_object(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
     SQLITE_OPEN_MAIN_JOURNAL or SQLITE_OPEN_WAL.  Any other use of this
     routine results in undefined and probably undesirable behavior.

IMPLEMENTATION NOTES
     These declarations were extracted from the interface documentation at
     line 3857.

     SQLITE_API sqlite3_file *sqlite3_database_file_object(const char*);

SEE ALSO
     sqlite3_file(3), sqlite3_vfs(3), SQLITE_OPEN_READONLY(3)

NetBSD 10.99                    August 24, 2023                   NetBSD 10.99