aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-10-05 03:19:35 -0300
committerEuAndreh <eu@euandre.org>2024-10-05 03:41:10 -0300
commitcbfa529eff56cda5f98989adf92db5a7da3c06ef (patch)
treea10b5e6045b28ed75ef507aa2bcdeccdc6af09ef
parentsrc/golite.go: Remove other undesirable configurations from Open() (diff)
downloadgolite-cbfa529eff56cda5f98989adf92db5a7da3c06ef.tar.gz
golite-cbfa529eff56cda5f98989adf92db5a7da3c06ef.tar.xz
src/golite.go: Reify "premises" section with custom build of SQLite (acude)
-rw-r--r--Makefile2
-rw-r--r--src/golite.go12
2 files changed, 3 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 0eb64d6..a0016f2 100644
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,7 @@ MANDIR = $(SHAREDIR)/man
EXEC = ./
## Where to store the installation. Empty by default.
DESTDIR =
-LDLIBS = --static -lsqlite3 -lm
+LDLIBS = --static -lacude -lm
GOCFLAGS = -I $(GOLIBDIR)
GOLDFLAGS = -L $(GOLIBDIR)
diff --git a/src/golite.go b/src/golite.go
index e489ea5..be02de6 100644
--- a/src/golite.go
+++ b/src/golite.go
@@ -19,19 +19,11 @@ import (
"syscall"
)
-/*
-Premises:
-- FTS5
-- (default) foreign keys
-- ICU
-- (default) AUTOVACUUM
-- SQLITE_THREADSAFE
-- column metadata
-*/
+
/*
#include <stdlib.h>
-#include <sqlite3.h>
+#include <acude.h>
void stepTrampoline(sqlite3_context *, int, sqlite3_value **);
void doneTrampoline(sqlite3_context *);