| Definition |
Value |
Explanation |
DEFAULT_RECORD |
"default.rec" |
Default filename for records, set as "default.rec". Provides a fallback file for storing data, with "Account" as the default record type for basic authentication. |
DEFAULT_RECORD_TYPE |
"account" |
Default record type is "account". Ensures the system supports login/authentication out-of-the-box if no other types are defined. |
MAX_RECORD_TYPES |
255 |
Maximum number of record types, configurable up to 255. Fits within a byte, balancing flexibility and memory efficiency. |
MAX_RECORDS |
1024 |
Maximum number of records, set to 1024 but adjustable in preferences. Allows scalability tailored to application needs. |
DB_MONOLITHIC |
0x00000001 |
Flag for a single-file database. Contrasts with segmented storage, simplifying file handling. |
DB_RAM_RECORD |
0x00000002 |
Loads records into RAM buffer. Boosts performance by reducing disk I/O for frequently accessed data. |
DB_FILE_JOURNAL |
0x00000004 |
Enables journaling of all I/O operations. Supports auditing and recovery by logging changes. |
DB_TIMESTAMP |
0x00000008 |
Adds timestamps to output. Useful for tracking record creation or modification times. |
RECORD_JOINED |
0x00000010 |
Indicates records can be joined. Suggests lightweight relational capabilities across record types. |
RECORD_BACKUP |
0x00000020 |
Saves records to a concurrent backup file. Enhances data reliability with redundancy. |
RECORD_TIMEOUT |
0x00000040 |
Marks records as expirable. Enables time-based expiration, like for temporary records. |
GET |
0x00000001 |
Command to retrieve data. Uses bit 0 as a toggle with PUT (1 = GET). |
PUT |
0xfffffffe |
Command to store data. Toggles bit 0 with GET (0 = PUT), saving space in the 8-bit command set. |
ALL |
0x00000002 |
Applies operation to all records. Simplifies bulk actions like retrieving or storing everything. |
GT |
0x00000004 |
"Greater than" filter. Supports conditional queries for numeric comparisons. |
LT |
0x00000008 |
"Less than" filter. Pairs with GT for range-based queries. |
EQU |
0x00000010 |
"Equal to" filter. Enables exact-match queries. |
ORDER_BY1 |
0x00000020 |
Sorts by name (0) or date (1). Provides basic result ordering. |
ORDER_BY2 |
0x00000040 |
Sorts by size (2) or data type (3). Extends sorting for specific fields. |
EXTENDED_ENABLE |
0x00000080 |
Enables extended command set. Signals use of 16-bit operations like JOIN. |
JOIN |
0x00000001 |
16-bit command for cross-record relations. Adds relational functionality. |
SPLIT |
0x00000002 |
16-bit command to split records. Complements JOIN for data manipulation. |
DATA_SUFFIX |
".dat" |
File extension for data files. Ensures consistent naming for storage. |