persistentstorage/sqlite3api/GROUP/sqlite3_macro.mmh
changeset 0 08ec8eefde2f
equal deleted inserted replaced
-1:000000000000 0:08ec8eefde2f
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // SQLite C API library. Build-time macros.
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20 */
       
    21 
       
    22 //Symbian OS port
       
    23 MACRO SQLITE_OS_OTHER=1
       
    24 MACRO SQLITE_OS_SYMBIAN=1
       
    25 
       
    26 //Disable the built-in test code
       
    27 MACRO SQLITE_OMIT_BUILTIN_TEST
       
    28 
       
    29 //Set the locking mode to be NORMAL by default
       
    30 MACRO SQLITE_DEFAULT_LOCKING_MODE=0
       
    31 
       
    32 //Multi-threaded release. The database handles cannot be shared between threads.
       
    33 MACRO SQLITE_THREADSAFE=2
       
    34 
       
    35 //The default SQLITE_MAX_COMPOUND_SELECT value is 500. It causes regression test failures (stack overflow).
       
    36 MACRO SQLITE_MAX_COMPOUND_SELECT=50
       
    37 
       
    38 //Enable memory management
       
    39 MACRO SQLITE_ENABLE_MEMORY_MANAGEMENT=1
       
    40 
       
    41 //Disable >2GB file support
       
    42 MACRO SQLITE_DISABLE_LFS
       
    43 
       
    44 //Vacuum mode = auto
       
    45 MACRO SQLITE_DEFAULT_AUTOVACUUM=1
       
    46 
       
    47 //Default cache page size in bytes
       
    48 MACRO SQLITE_DEFAULT_PAGE_SIZE=1024
       
    49 
       
    50 //Max cache page size in bytes
       
    51 MACRO SQLITE_MAX_PAGE_SIZE=32768
       
    52 
       
    53 //Default page cache size in pages, each of SQLITE_DEFAULT_PAGE_SIZE size
       
    54 MACRO SQLITE_DEFAULT_CACHE_SIZE=64
       
    55 
       
    56 //Default temporary page cache size in pages, each of SQLITE_DEFAULT_PAGE_SIZE size
       
    57 MACRO SQLITE_DEFAULT_TEMP_CACHE_SIZE=32
       
    58 
       
    59 //Temporary files - in memory only
       
    60 MACRO SQLITE_TEMP_STORE=3
       
    61 
       
    62 //Omit the capability to issue "progress" callbacks during long-running SQL statements
       
    63 MACRO SQLITE_OMIT_PROGRESS_CALLBACK=1
       
    64 
       
    65 //No virtual tables
       
    66 MACRO SQLITE_OMIT_VIRTUALTABLE=1
       
    67 
       
    68 //No SQLITE extensions
       
    69 MACRO SQLITE_OMIT_LOAD_EXTENSION=1
       
    70 
       
    71 //Disables SQL statements tracing. Causes a linker error if enabled - ARM4, UREL build.
       
    72 //(Vdbeapi.c, "undefined reference to `__fixunsdfdi'",
       
    73 // the line is: "elapseTime = (rNow - (int)rNow)*3600.0*24.0*1000000000.0 - p->startTime;"
       
    74 // there is no convertion function for "double -> uinsigned long long" cast)
       
    75 MACRO SQLITE_OMIT_TRACE=1
       
    76 
       
    77 #if defined WINS || defined WINSCW
       
    78 
       
    79 //Enable sqlite debugging
       
    80 MACRO SQLITE_DEBUG=1
       
    81 
       
    82 //Do not use WSD
       
    83 MACRO SQLITE_OMIT_WSD=1
       
    84 
       
    85 #endif //end of "#if defined WINS || defined WINSCW"