mirror of
https://github.com/fluencelabs/sqlite
synced 2025-04-24 17:02:14 +00:00
introduce the ENABLE_LOG macro
This commit is contained in:
parent
3dc83269a5
commit
584cb18795
3
Makefile
3
Makefile
@ -128,7 +128,8 @@ SQLITE_FLAGS = \
|
|||||||
-DSQLITE_ENABLE_OFFSET_SQL_FUNC\
|
-DSQLITE_ENABLE_OFFSET_SQL_FUNC\
|
||||||
-DSQLITE_ENABLE_DESERIALIZE\
|
-DSQLITE_ENABLE_DESERIALIZE\
|
||||||
-DSQLITE_INTROSPECTION_PRAGMAS\
|
-DSQLITE_INTROSPECTION_PRAGMAS\
|
||||||
-DSQLITE_OMIT_POPEN
|
-DSQLITE_OMIT_POPEN\
|
||||||
|
-DLOG_ENABLED
|
||||||
|
|
||||||
.PHONY: default all clean
|
.PHONY: default all clean
|
||||||
|
|
||||||
|
@ -3,5 +3,6 @@ services:
|
|||||||
sqlite3:
|
sqlite3:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
|
container_name: sqlite3_builder
|
||||||
volumes:
|
volumes:
|
||||||
- .:/code
|
- .:/code
|
||||||
|
@ -110,14 +110,20 @@ const char *invoke(char *request, int request_size) {
|
|||||||
if(g_isInited == 0) {
|
if(g_isInited == 0) {
|
||||||
// TODO: check the return code
|
// TODO: check the return code
|
||||||
init();
|
init();
|
||||||
|
|
||||||
|
#if LOG_ENABLED
|
||||||
const char successInitMessage[] = "Sqlite has been initialized";
|
const char successInitMessage[] = "Sqlite has been initialized";
|
||||||
log_utf8_string(successInitMessage, sizeof(successInitMessage));
|
log_utf8_string(successInitMessage, sizeof(successInitMessage));
|
||||||
|
#endif
|
||||||
|
|
||||||
g_isInited = 1;
|
g_isInited = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
request[request_size] = 0;
|
request[request_size] = 0;
|
||||||
|
|
||||||
|
#if LOG_ENABLED
|
||||||
log_utf8_string(request, request_size);
|
log_utf8_string(request, request_size);
|
||||||
|
#endif
|
||||||
|
|
||||||
ShellText str;
|
ShellText str;
|
||||||
initText(&str);
|
initText(&str);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user