mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-25 00:36:56 +02:00
rm cgo bindings bc theyre in a separate repo anyway
This commit is contained in:
parent
cc12e44d4c
commit
b582f1db41
2 changed files with 0 additions and 31 deletions
|
|
@ -1,3 +0,0 @@
|
||||||
module github.com/asg017/sqlite-vec/bindings/go/cgo
|
|
||||||
|
|
||||||
go 1.20
|
|
||||||
|
|
@ -1,28 +0,0 @@
|
||||||
package vec
|
|
||||||
|
|
||||||
// #cgo LDFLAGS: -lsqlite_vec0
|
|
||||||
// #cgo CFLAGS: -DSQLITE_CORE
|
|
||||||
// #include <sqlite3ext.h>
|
|
||||||
//
|
|
||||||
// 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) );
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue