dal/binding/dal.go

25 lines
380 B
Go
Raw Normal View History

package main
import "C"
import (
"strings"
_ "github.com/mattn/go-sqlite3"
"l12.xyz/dal/facade"
)
//export InitSQLite
func InitSQLite(pragmas string) {
pragmasArray := strings.Split(pragmas, ";")
facade.InitSQLite(pragmasArray)
}
//export HandleQuery
func HandleQuery(input []byte) []byte {
var out []byte
facade.HandleQuery(&input, &out)
return out
}
func main() {}