Skip to content

SQLite Bedrock amalgamation for embedded mode #2328

@pavanmbit

Description

@pavanmbit

Hi team

Context: I want to use Begin Concurrent and WAL2 in my Golang project in embedded mode.

Can I safely use the https://github.com/sqlite/sqlite/tree/bedrock branch for Begin Concurrent and WAL2? This branch works fine but wanted to know if its being maintained either by you guys or sqlite team.

And also, I tried using the sqlite.c and .h files from libstuff folder for hctree version but I get build errors on mac.
Am I missing something? I am assuming sqlite.c and .h are no change replacements for original sqlite amalgamation.

sqlite3.c:268651:23: warning: redefinition of typedef 'i64' is a C11 feature [-Wtypedef-redefinition]
sqlite3.c:15526:22: note: previous definition is here
sqlite3.c:268652:23: warning: redefinition of typedef 'u8' is a C11 feature [-Wtypedef-redefinition]
sqlite3.c:15531:20: note: previous definition is here
sqlite3.c:268653:22: warning: redefinition of typedef 'u32' is a C11 feature [-Wtypedef-redefinition]
sqlite3.c:15528:21: note: previous definition is here
sqlite3.c:269053:24: warning: redefinition of typedef 'HctFile' is a C11 feature [-Wtypedef-redefinition]
sqlite3.c:268869:24: note: previous definition is here
sqlite3.c:269393:27: warning: redefinition of typedef 'HctJournal' is a C11 feature [-Wtypedef-redefinition]
sqlite3.c:269190:27: note: previous definition is here
sqlite3.c:269568:27: warning: redefinition of typedef 'HctJournal' is a C11 feature [-Wtypedef-redefinition]
sqlite3.c:269393:27: note: previous definition is here
sqlite3.c:276081:30: warning: redefinition of typedef 'HctFileServer' is a C11 feature [-Wtypedef-redefinition]
sqlite3.c:268868:30: note: previous definition is here
sqlite3.c:278482:37: warning: passing 'u8 *' (aka 'unsigned char *') to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/mman.h:258:45: note: passing argument to parameter here
sqlite3.c:278942:28: warning: redefinition of typedef 'HctDatabase' is a C11 feature [-Wtypedef-redefinition]
sqlite3.c:269390:28: note: previous definition is here
sqlite3.c:287655:9: error: expected expression
sqlite3.c:287657:68: error: use of undeclared identifier 'n'

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions