This commit is contained in:
Nuno Cruces
2023-01-18 01:30:57 +00:00
parent 833082cf5a
commit af14a722df
2 changed files with 5 additions and 4 deletions

View File

@@ -21,7 +21,7 @@ Roadmap:
- concurrency is achieved by instantiating the module repeatedly
- file access needs to be synchronized, both in-process and out-of-process
- out-of-process should be compatible with SQLite on Windows/Unix
- [ ] benchmark to see if this is usefull at all:
- [ ] benchmark to see if this is useful at all:
- [`github.com/cvilsmeier/sqinn-go`](https://github.com/cvilsmeier/sqinn-go-bench)
- [`github.com/bvinc/go-sqlite-lite`](https://github.com/bvinc/go-sqlite-lite)
- [`github.com/mattn/go-sqlite3`](https://github.com/mattn/go-sqlite3)

View File

@@ -1,15 +1,16 @@
#include <stdlib.h>
#include "sqlite3.h"
int main() {
int rc = sqlite3_initialize();
if (rc != SQLITE_OK) return -1;
int rc = sqlite3_initialize();
if (rc != SQLITE_OK) return -1;
}
sqlite3_vfs *sqlite3_demovfs();
int sqlite3_os_init() {
return sqlite3_vfs_register(sqlite3_demovfs(), /*default=*/1);
return sqlite3_vfs_register(sqlite3_demovfs(), /*default=*/1);
}
sqlite3_destructor_type malloc_destructor = &free;