Skip to main content

Module limits

Module limits 

Source

Constantsยง

BTREE_INTERIOR_HEADER_SIZE
Size of a B-tree page header for interior pages.
BTREE_LEAF_HEADER_SIZE
Size of a B-tree page header for leaf pages.
BTREE_MAX_DEPTH
Maximum depth of B-tree cursor stack (max tree depth). A database with 2^31 pages and a branching factor of 2 would have depth ~31. SQLite uses 20 as a safe maximum.
BTREE_MIN_CELLS
Minimum number of cells on a B-tree page.
CELL_POINTER_SIZE
Size of a cell pointer (u16) in the cell pointer array.
DB_HEADER_SIZE
Size of the database file header in bytes.
DEFAULT_CACHE_SIZE
Default suggested cache size (negative means limit by memory in KB). -2000 means 2048000 bytes = ~2 MB.
DEFAULT_PAGE_SIZE
Default page size in bytes.
DEFAULT_WAL_AUTOCHECKPOINT
Default number of WAL frames before auto-checkpointing.
MAX_ALLOCATION_SIZE
Maximum size of any single memory allocation.
MAX_ATTACHED
Maximum number of attached databases.
MAX_COLUMN
Maximum number of columns in a table, index, or view. Also the maximum number of terms in SET, result set, GROUP BY, ORDER BY, VALUES.
MAX_COMPOUND_SELECT
Maximum number of terms in a compound SELECT statement.
MAX_DEFAULT_PAGE_SIZE
Maximum default page size (used for auto-selection).
MAX_EXPR_DEPTH
Maximum depth of an expression tree.
MAX_FUNCTION_ARG
Maximum number of arguments to an SQL function.
MAX_LENGTH
Maximum length of a TEXT or BLOB in bytes. Also limits the size of a row in a table or index.
MAX_LIKE_PATTERN_LENGTH
Maximum length in bytes of a LIKE or GLOB pattern.
MAX_PAGE_COUNT
Maximum number of pages in one database file.
MAX_PAGE_SIZE
Maximum page size in bytes (must be 65536).
MAX_PARSER_DEPTH
Maximum depth of the parser stack.
MAX_SQL_LENGTH
Maximum length of a single SQL statement in bytes.
MAX_TRIGGER_DEPTH
Maximum depth of recursion for triggers.
MAX_VARIABLE_NUMBER
Maximum value of a ?nnn wildcard parameter number.
MAX_VDBE_OP
Maximum number of opcodes in a VDBE program.
MIN_LENGTH
Minimum allowed value for the length limit.
WAL_FRAME_HEADER_SIZE
Size of a WAL frame header in bytes.
WAL_HEADER_SIZE
Size of the WAL file header in bytes.
WAL_MAGIC_BE
WAL magic number (big-endian checksums).
WAL_MAGIC_LE
WAL magic number (little-endian checksums).