From b582f1db4182e7be025ddb1476b11f24b80d6c66 Mon Sep 17 00:00:00 2001 From: Alex Garcia Date: Fri, 11 Oct 2024 09:14:17 -0700 Subject: [PATCH] rm cgo bindings bc theyre in a separate repo anyway --- bindings/go/cgo/go.mod | 3 --- bindings/go/cgo/lib.go | 28 ---------------------------- 2 files changed, 31 deletions(-) delete mode 100644 bindings/go/cgo/go.mod delete mode 100644 bindings/go/cgo/lib.go diff --git a/bindings/go/cgo/go.mod b/bindings/go/cgo/go.mod deleted file mode 100644 index 4205727..0000000 --- a/bindings/go/cgo/go.mod +++ /dev/null @@ -1,3 +0,0 @@ -module github.com/asg017/sqlite-vec/bindings/go/cgo - -go 1.20 diff --git a/bindings/go/cgo/lib.go b/bindings/go/cgo/lib.go deleted file mode 100644 index 39c4775..0000000 --- a/bindings/go/cgo/lib.go +++ /dev/null @@ -1,28 +0,0 @@ -package vec - -// #cgo LDFLAGS: -lsqlite_vec0 -// #cgo CFLAGS: -DSQLITE_CORE -// #include -// -// extern int sqlite3_vec_init(sqlite3 *db, char **pzErrMsg, const sqlite3_api_routines *pApi); -// -import "C" - -// Once called, every future new SQLite3 connection created in this process -// will have the hello extension loaded. It will persist until [Cancel] is -// called. -// -// Calls [sqlite3_auto_extension()] under the hood. -// -// [sqlite3_auto_extension()]: https://www.sqlite.org/c3ref/auto_extension.html -func Auto() { - C.sqlite3_auto_extension( (*[0]byte) ((C.sqlite3_vec_init)) ); -} - -// "Cancels" any previous calls to [Auto]. Any new SQLite3 connections created -// will not have the hello extension loaded. -// -// Calls sqlite3_cancel_auto_extension() under the hood. -func Cancel() { - C.sqlite3_cancel_auto_extension( (*[0]byte) (C.sqlite3_vec_init) ); -}