dal/binding/dal.go

25 lines
396 B
Go
Raw Normal View History

package main
import "C"
import (
"strings"
_ "github.com/mattn/go-sqlite3"
2024-08-20 13:53:12 +00:00
"github.com/nesterow/dal/pkg/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() {}