1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/persistentdata/persistentstorage/sql/GROUP/sqlite_macro.mmh Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,100 @@
1.4 +// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +// SQLite.lib Database management - SQLite library. Common
1.18 +// sqlite macro definitions.
1.19 +//
1.20 +//
1.21 +
1.22 +/**
1.23 + @file
1.24 +*/
1.25 +
1.26 +//Symbian OS port
1.27 +MACRO SQLITE_OS_OTHER=1
1.28 +MACRO SQLITE_OS_SYMBIAN=1
1.29 +
1.30 +//The SQLite initialization will be made explicitly inside the sqlite3SymbianLibInit() function implementation
1.31 +MACRO SQLITE_OMIT_AUTOINIT=1
1.32 +
1.33 +//Symbian - memory allocation functions
1.34 +MACRO malloc=sqlite3SymbianMalloc
1.35 +MACRO free=sqlite3SymbianFree
1.36 +MACRO realloc=sqlite3SymbianRealloc
1.37 +
1.38 +//Disable the built-in test code
1.39 +MACRO SQLITE_OMIT_BUILTIN_TEST
1.40 +
1.41 +//The default SQLITE_MAX_COLUMN value is 2000. It causes regression test failures.
1.42 +MACRO SQLITE_MAX_COLUMN=4096
1.43 +
1.44 +//The default SQLITE_MAX_LENGTH value is 1000000000. It causes an artificial limit on the size of a BLOB object
1.45 +MACRO SQLITE_MAX_LENGTH=2147483647
1.46 +
1.47 +//The default SQLITE_MAX_EXPR_DEPTH value is 1000. It causes regression test failures.
1.48 +MACRO SQLITE_MAX_EXPR_DEPTH=250
1.49 +
1.50 +//The default SQLITE_DEFAULT_JOURNAL_SIZE_LIMIT value is -1 - no journal size limit.
1.51 +MACRO SQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=65536
1.52 +
1.53 +//Set the locking mode to be EXCLUSIVE by default
1.54 +MACRO SQLITE_DEFAULT_LOCKING_MODE=1
1.55 +
1.56 +//No mutexes. SQLITE_MUTEX_NOOP should not be used here. Its value will be defined automatically by SQLite.
1.57 +MACRO SQLITE_THREADSAFE=0
1.58 +
1.59 +//Enable memory management
1.60 +MACRO SQLITE_ENABLE_MEMORY_MANAGEMENT=1
1.61 +
1.62 +//Vacuum mode = incremental
1.63 +MACRO SQLITE_DEFAULT_AUTOVACUUM=2
1.64 +
1.65 +//Default cache page size in bytes
1.66 +MACRO SQLITE_DEFAULT_PAGE_SIZE=1024
1.67 +
1.68 +//Max cache page size in bytes
1.69 +MACRO SQLITE_MAX_PAGE_SIZE=32768
1.70 +
1.71 +//Default page cache size in pages, each of SQLITE_DEFAULT_PAGE_SIZE size
1.72 +MACRO SQLITE_DEFAULT_CACHE_SIZE=1024
1.73 +
1.74 +//Default temporary page cache size in pages, each of SQLITE_DEFAULT_PAGE_SIZE size
1.75 +MACRO SQLITE_DEFAULT_TEMP_CACHE_SIZE=32
1.76 +
1.77 +//Temporary files - in memory only
1.78 +MACRO SQLITE_TEMP_STORE=3
1.79 +
1.80 +//Omit the capability to issue "progress" callbacks during long-running SQL statements
1.81 +MACRO SQLITE_OMIT_PROGRESS_CALLBACK=1
1.82 +
1.83 +//No virtual tables
1.84 +MACRO SQLITE_OMIT_VIRTUALTABLE=1
1.85 +
1.86 +//No SQLITE extensions
1.87 +MACRO SQLITE_OMIT_LOAD_EXTENSION=1
1.88 +
1.89 +//The maximum value of a host parameter number (the default value is 999)
1.90 +MACRO SQLITE_MAX_VARIABLE_NUMBER=32767
1.91 +
1.92 +//Disables SQL statements tracing. Causes a linker error if enabled - ARM4, UREL build.
1.93 +//(Vdbeapi.c, "undefined reference to `__fixunsdfdi'",
1.94 +// the line is: "elapseTime = (rNow - (int)rNow)*3600.0*24.0*1000000000.0 - p->startTime;"
1.95 +// there is no convertion function for "double -> uinsigned long long" cast)
1.96 +MACRO SQLITE_OMIT_TRACE=1
1.97 +
1.98 +#if defined WINS || defined WINSCW
1.99 +
1.100 +//Enable sqlite debugging
1.101 +MACRO SQLITE_DEBUG
1.102 +
1.103 +#endif //end of "#if defined WINS || defined WINSCW"