AD

SQLITE source analysis (17)

<! - StartFragment ->

/ * Disclaimer: The SQLite source code analysis series LIU Xing (**deepfuture.javaeye**/) original, without author authorization, people and institutions can not be reproduced in any

** CAPI3REF: Flags For File Open Operations

** File open operation flag, sqlite3_open_v2 () used by the third argument, sqlite3_vfs the xopen model parameters used in the first 4

** These bit values are intended for use in the

** 3rd parameter to the [sqlite3_open_v2 ()] interface and

** In the 4th parameter to the xOpen method of the

** [Sqlite3_vfs] object.

* /

# Define SQLITE_OPEN_READONLY 0x00000001 / * Ok for sqlite3_open_v2 () * /

# Define SQLITE_OPEN_READWRITE 0x00000002 / * Ok for sqlite3_open_v2 () * /

# Define SQLITE_OPEN_CREATE 0x00000004 / * Ok for sqlite3_open_v2 () * /

# Define SQLITE_OPEN_DELETEONCLOSE 0x00000008 / * VFS only * /

# Define SQLITE_OPEN_EXCLUSIVE 0x00000010 / * VFS only * /

# Define SQLITE_OPEN_AUTOPROXY 0x00000020 / * VFS only * /

# Define SQLITE_OPEN_MAIN_DB 0x00000100 / * VFS only * /

# Define SQLITE_OPEN_TEMP_DB 0x00000200 / * VFS only * /

# Define SQLITE_OPEN_TRANSIENT_DB 0x00000400 / * VFS only * /

# Define SQLITE_OPEN_MAIN_JOURNAL 0x00000800 / * VFS only * /

# Define SQLITE_OPEN_TEMP_JOURNAL 0x00001000 / * VFS only * /

# Define SQLITE_OPEN_SUBJOURNAL 0x00002000 / * VFS only * /

# Define SQLITE_OPEN_MASTER_JOURNAL 0x00004000 / * VFS only * /

# Define SQLITE_OPEN_NOMUTEX 0x00008000 / * Ok for sqlite3_open_v2 () * /

# Define SQLITE_OPEN_FULLMUTEX 0x00010000 / * Ok for sqlite3_open_v2 () * /

# Define SQLITE_OPEN_SHAREDCACHE 0x00020000 / * Ok for sqlite3_open_v2 () * /

# Define SQLITE_OPEN_PRIVATECACHE 0x00040000 / * Ok for sqlite3_open_v2 () * /

/ *

** CAPI3REF: Device Characteristics

** Device parameters

** Sqlite3_io_methods object xDeviceCapabilities method returns an integer, this integer is the primary storage device I / O parameters bit container, the primary storage device for the sqlite3_io_methods cited

** The xDeviceCapabilities method of the [sqlite3_io_methods]

** Object returns an integer which is a vector of the these

** Bit values expressing I / O characteristics of the mass storage

** Device that holds the file that the [sqlite3_io_methods]

** Refers to.

** SQLITE_IOCAP_ATOMIC property means that the writing of any size are atomic, that is either complete or not complete, SQLITE_IOCAP_ATOMICnnn means nnn-byte blocks written to an address an atomic operation, the address is composed of more than nnn integer. SQLITE_IOCAP_SAFE_APPEND means that when the data added to a file, the first increase in the data, the file size of the extension; SQLITE_IOCAP_SEQUENTIAL means that information in accordance with xWrite () is written to disk in the same order

** The SQLITE_IOCAP_ATOMIC property means that all writes of

** Any size are atomic. The SQLITE_IOCAP_ATOMICnnn values

** Mean that writes of blocks that are nnn bytes in size and

** Are aligned to an address which is an integer multiple of

** Nnn are atomic. The SQLITE_IOCAP_SAFE_APPEND value means

** That when data is appended to a file, the data is appended

** First then the size of the file is extended, never the other

** Way around. The SQLITE_IOCAP_SEQUENTIAL property means that

** Information is written to disk in the same order as calls

** To xWrite ().

* /

# Define SQLITE_IOCAP_ATOMIC 0x00000001

# Define SQLITE_IOCAP_ATOMIC512 0x00000002

# Define SQLITE_IOCAP_ATOMIC1K 0x00000004

# Define SQLITE_IOCAP_ATOMIC2K 0x00000008

# Define SQLITE_IOCAP_ATOMIC4K 0x00000010

# Define SQLITE_IOCAP_ATOMIC8K 0x00000020

# Define SQLITE_IOCAP_ATOMIC16K 0x00000040

# Define SQLITE_IOCAP_ATOMIC32K 0x00000080

# Define SQLITE_IOCAP_ATOMIC64K 0x00000100

# Define SQLITE_IOCAP_SAFE_APPEND 0x00000200

# Define SQLITE_IOCAP_SEQUENTIAL 0x00000400
标签: lt, interface, sqlite3, source code analysis, flags, model parameters, source analysis, autoproxy, institutions, readwrite, liu xing, device characteristics, device parameters, primary storage device, open operations
分类: CPP
时间: 2010-10-16

相关文章

  1. SQLITE source analysis (16)

    Disclaimer: The SQLite source code analysis series LIU Xing (http://deepfuture.javaeye.com/) original, without ...
  2. SQLITE Source Analysis (3)

    Disclaimer: The SQLite source code analysis series Xing (http://deepfuture.javaeye.com/) original, without aut ...
  3. SQLITE Source Analysis (5)

    Disclaimer: The SQLite source code analysis series Xing (http://deepfuture.javaeye.com/) original, without aut ...
  4. SQLITE Source Analysis (7)

    Disclaimer: The SQLite source code analysis series Xing (http://deepfuture.javaeye.com/) original, without aut ...
  5. SQLITE Source Analysis (8)

    Disclaimer: The SQLite source code analysis series Xing (http://deepfuture.javaeye.com/) original, without aut ...
  6. SQLITE Source Analysis (9)

    / * Disclaimer: The SQLite source code analysis series Xing (http://deepfuture.javaeye.com/) original, without ...
  7. SQLITE Source Analysis (10)

    Disclaimer: The SQLite source code analysis series Xing (http://deepfuture.javaeye.com/) original, without aut ...
  8. SQLITE Source Analysis (11)

    Disclaimer: The SQLite source code analysis series Xing (http://deepfuture.javaeye.com/) original, without aut ...
  9. SQLITE Source Analysis (12)

    Disclaimer: The SQLite source code analysis series Xing (http://deepfuture.javaeye.com/) original, without aut ...
  10. SQLITE Source Analysis (13)

    Disclaimer: The SQLite source code analysis series Xing (http://deepfuture.javaeye.com/) original, without aut ...
  11. SQLITE Source Analysis (14)

    Disclaimer: The SQLite source code analysis series Xing (http://deepfuture.javaeye.com/) original, without aut ...
  12. SQLITE source analysis (15)

    Statement: The SQLite source code analysis series Xing (http://deepfuture.iteye.com/) original, without my aut ...
  13. SQLite source code download

    Disclaimer: This SQLITE Source Analysis series Xing (http://deepfuture.javaeye.com/) original, without author ...
  14. SQLite source code analysis (1)

    Disclaimer: The SQLite source code analysis series Xing ( http://deepfuture.javaeye.com/) original, without au ...
  15. sqlite source code analysis (2)

    Disclaimer: The SQLite source code analysis series Xing (http://deepfuture.javaeye.com/) original, without aut ...
  16. SQLite source code analysis (6)

    / * ** Add the ability to override 'extern' * / / / Extern macro definitions can be used to complete the exter ...
  17. sqlite source code analysis (18)

    Disclaimer: The SQLite source code analysis series LIU Xing (http://deepfuture.javaeye.com/) original, without ...
  18. CLucene source analysis (c) cross-platform, thread-safe

    Home> CLucene, program Life> CLucene source analysis (c) cross-platform, thread-safe CLucene source anal ...
  19. Struts1 Source analysis - international resource file

    Struts1 Source analysis - international resource file 1. URL class diagram 2. Description a) Struts resources ...