compound_statement
{ "{"
expression_statement
comma_expression
identifier "DEFERRED"
, ","
comma_expression
identifier "EXCLUSIVE"
, ","
identifier "IMMEDIATE"
ERROR
} "}"
; ";"
declaration
storage_class_specifier
static "static"
type_qualifier
const "const"
type_identifier "std"
ERROR
: ":"
: ":"
identifier "string"
identifier "SQLITE_DATE_FORMAT"
; ";"
declaration
storage_class_specifier
static "static"
type_qualifier
const "const"
type_identifier "std"
ERROR
: ":"
: ":"
identifier "string"
identifier "SQLITE_TIME_FORMAT"
; ";"
type_definition (+21 nodes collapsed)
declaration
storage_class_specifier
static "static"
type_qualifier
const "const"
primitive_type "int"
identifier "THREAD_MODE_SINGLE"
; ";"
declaration
storage_class_specifier
static "static"
type_qualifier
const "const"
primitive_type "int"
identifier "THREAD_MODE_MULTI"
; ";"
declaration
storage_class_specifier
static "static"
type_qualifier
const "const"
primitive_type "int"
identifier "THREAD_MODE_SERIAL"
; ";"
declaration
storage_class_specifier
static "static"
type_qualifier
const "const"
primitive_type "int"
identifier "OPERATION_INSERT"
; ";"
declaration
storage_class_specifier
static "static"
type_qualifier
const "const"
primitive_type "int"
identifier "OPERATION_DELETE"
; ";"
declaration
storage_class_specifier
static "static"
type_qualifier
const "const"
primitive_type "int"
identifier "OPERATION_UPDATE"
; ";"
declaration
storage_class_specifier
static "static"
type_identifier "sqlite3"
pointer_declarator
* "*"
function_declarator
identifier "dbHandle"
parameter_list
( "("
parameter_declaration
type_qualifier
const "const"
type_identifier "Session"
ERROR
& "&"
identifier "session"
) ")"
; ";"
comment "/// Returns native DB handle."
declaration
storage_class_specifier
static "static"
type_identifier "std"
ERROR
: ":"
: ":"
identifier "string"
function_declarator
identifier "lastError"
parameter_list
( "("
parameter_declaration
type_identifier "sqlite3"
pointer_declarator
* "*"
identifier "pDB"
) ")"
; ";"
comment "/// Retreives the last error code from sqlite and converts i"...
declaration (+21 nodes collapsed)
comment "/// Retreives the last error code from sqlite and converts i"...
declaration (+39 nodes collapsed)
comment "/// Throws for an error code the appropriate exception"
declaration (+27 nodes collapsed)
comment "/// Returns column data type."
declaration (+26 nodes collapsed)
comment "/// Loads the contents of a database file on disk into an op"...
comment "/// database in memory."
comment "///"
comment "/// Returns true if succesful."
declaration (+28 nodes collapsed)
comment "/// Loads the contents of a database file on disk into an op"...
comment "/// database in memory."
comment "///"
comment "/// Returns true if succesful."
declaration (+26 nodes collapsed)
comment "/// Saves the contents of an opened database in memory to th"...
comment "/// database on disk."
comment "///"
comment "/// Returns true if succesful."
declaration (+28 nodes collapsed)
comment "/// Saves the contents of an opened database in memory to th"...
comment "/// database on disk."
comment "///"
comment "/// Returns true if succesful."
declaration
storage_class_specifier
static "static"
primitive_type "bool"
function_declarator
identifier "isThreadSafe"
parameter_list
( "("
) ")"
; ";"
comment "/// Returns true if SQLite was compiled in multi-thread or s"...
comment "/// See http://www.sqlite.org/c3ref/threadsafe.html for deta"...
comment "///"
comment "/// Returns true if succesful"
declaration
storage_class_specifier
static "static"
primitive_type "bool"
function_declarator
identifier "setThreadMode"
parameter_list
( "("
parameter_declaration
primitive_type "int"
identifier "mode"
) ")"
; ";"
comment "/// Sets the threading mode to single, multi or serialized."
comment "/// See http://www.sqlite.org/threadsafe.html for details."
comment "///"
comment "/// Returns true if succesful"
declaration
storage_class_specifier
static "static"
primitive_type "int"
function_declarator
identifier "getThreadMode"
parameter_list
( "("
) ")"
; ";"
comment "/// Returns the thread mode."
type_definition (+42 nodes collapsed)
comment "/// Update callback function type."
type_definition
typedef "typedef"
primitive_type "int"
function_declarator
parenthesized_declarator
( "("
pointer_declarator
* "*"
type_identifier "CommitCallbackType"
) ")"
parameter_list
( "("
parameter_declaration
primitive_type "void"
abstract_pointer_declarator
* "*"
) ")"
; ";"
comment "/// Commit callback function type."
type_definition
typedef "typedef"
primitive_type "void"
function_declarator
parenthesized_declarator
( "("
pointer_declarator
* "*"
type_identifier "RollbackCallbackType"
) ")"
parameter_list
( "("
parameter_declaration
primitive_type "void"
abstract_pointer_declarator
* "*"
) ")"
; ";"
comment "/// Rollback callback function type."
expression_statement
comma_expression
binary_expression
identifier "template"
< "<"
identifier "typename"
ERROR
identifier "T"
, ","
binary_expression
identifier "typename"
ERROR
identifier "CBT"
> ">"
identifier "static"
; ""
function_definition
primitive_type "bool"
function_declarator
identifier "registerUpdateHandler"
parameter_list
( "("
parameter_declaration
type_identifier "sqlite3"
pointer_declarator
* "*"
identifier "pDB"
, ","
parameter_declaration
type_identifier "CBT"
identifier "callbackFn"
, ","
parameter_declaration
type_identifier "T"
pointer_declarator
* "*"
identifier "pParam"
) ")"
comment "/// Registers the callback for (1)(insert, delete, update), "...
comment "/// or (3)(rollback) events. Only one function per group can"...
comment "/// at a time. Registration is not thread-safe. Storage poin"...
comment "/// must remain valid as long as registration is active. Reg"...
comment "/// callbackFn set to zero disables notifications."
comment "///"
comment "/// See http://www.sqlite.org/c3ref/update_hook.html and"
comment "/// http://www.sqlite.org/c3ref/commit_hook.html for details"...
compound_statement
{ "{"
type_definition
typedef "typedef"
type_identifier "std"
ERROR
: ":"
: ":"
type_identifier "pair"
< "<"
type_identifier "CBT"
, ","
ERROR
type_identifier "T"
* "*"
> ">"
type_identifier "CBPair"
; ";"
type_definition
typedef "typedef"
type_identifier "std"
ERROR
: ":"
: ":"
type_identifier "multimap"
< "<"
type_identifier "sqlite3"
ERROR
* "*"
, ","
type_identifier "CBPair"
ERROR
> ">"
identifier "CBMap"
; ";"
type_definition
typedef "typedef"
type_identifier "typename"
ERROR
type_identifier "CBMap"
: ":"
: ":"
type_identifier "iterator"
type_identifier "CBMapIt"
; ";"
type_definition
typedef "typedef"
type_identifier "std"
ERROR
: ":"
: ":"
type_identifier "pair"
< "<"
type_identifier "CBMapIt"
, ","
ERROR
type_identifier "CBMapIt"
> ">"
type_identifier "CBMapItPair"
; ";"
declaration
storage_class_specifier
static "static"
type_identifier "CBMap"
identifier "retMap"
; ";"
declaration (+29 nodes collapsed)
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
identifier "pRet"
== "=="
number_literal "0"
) ")"
compound_statement (+63 nodes collapsed)
else_clause
else "else"
compound_statement
{ "{"
declaration
type_identifier "CBMapItPair"
init_declarator
identifier "retMapRange"
= "="
call_expression
field_expression
identifier "retMap"
. "."
field_identifier "equal_range"
argument_list
( "("
identifier "pDB"
) ")"
; ";"
for_statement
for "for"
( "("
declaration
type_identifier "CBMapIt"
init_declarator
identifier "it"
= "="
field_expression
identifier "retMapRange"
. "."
field_identifier "first"
; ";"
binary_expression
identifier "it"
!= "!="
field_expression
identifier "retMapRange"
. "."
field_identifier "second"
; ";"
update_expression
++ "++"
identifier "it"
) ")"
compound_statement
{ "{"
expression_statement
call_expression
identifier "poco_assert"
argument_list
( "("
binary_expression
field_expression
field_expression
identifier "it"
-> "->"
field_identifier "second"
. "."
field_identifier "first"
!= "!="
number_literal "0"
) ")"
; ";"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
parenthesized_expression
( "("
binary_expression
identifier "callbackFn"
== "=="
number_literal "0"
) ")"
&& "&&"
parenthesized_expression
( "("
binary_expression
pointer_expression
* "*"
identifier "pRet"
== "=="
pointer_expression
* "*"
field_expression
field_expression
identifier "it"
-> "->"
field_identifier "second"
. "."
field_identifier "second"
) ")"
) ")"
compound_statement
{ "{"
expression_statement
call_expression
field_expression
identifier "retMap"
. "."
field_identifier "erase"
argument_list
( "("
identifier "it"
) ")"
; ";"
return_statement
return "return"
true "true"
; ";"
} "}"
if_statement (+56 nodes collapsed)
} "}"
} "}"
return_statement
return "return"
false "false"
; ";"
} "}"
expression_statement
comma_expression
binary_expression
identifier "template"
< "<"
identifier "typename"
ERROR
identifier "T"
, ","
binary_expression
identifier "typename"
ERROR
identifier "CBT"
> ">"
identifier "static"
; ""
function_definition (+46 nodes collapsed)
function_definition (+45 nodes collapsed)
expression_statement
; ";"
labeled_statement
statement_identifier "private"
: ":"
expression_statement
call_expression
identifier "Utility"
argument_list
( "("
) ")"
; ";"
comment "/// Maps SQLite column declared types to Poco::Data types th"...
comment "/// static TypeMap member."
comment "///"
comment "/// Note: SQLite is type-agnostic and it is the end-user res"...
comment "/// to ensure that column declared data type corresponds to "...
comment "/// data actually held in the database."
comment "///"
comment "/// Column types are case-insensitive."
macro_type_specifier
identifier "Utility"
( "("
type_descriptor
type_qualifier
const "const"
type_identifier "Utility"
ERROR
& "&"
) ")"
; ";"
expression_statement
binary_expression
identifier "Utility"
& "&"
assignment_expression
identifier "operator"
= "="
cast_expression
( "("
type_descriptor
type_qualifier
const "const"
type_identifier "Utility"
ERROR
& "&"
) ")"
identifier ""
; ";"
declaration (+27 nodes collapsed)
declaration (+27 nodes collapsed)
declaration (+27 nodes collapsed)
declaration
storage_class_specifier
static "static"
type_identifier "TypeMap"
identifier "_types"
; ";"
declaration
storage_class_specifier
static "static"
type_identifier "Poco"
ERROR
: ":"
: ":"
identifier "Mutex"
identifier "_mutex"
; ";"
declaration
storage_class_specifier
static "static"
primitive_type "int"
identifier "_threadMode"
; ";"
} "}"