ruster
Ruster is a library using ffi for database management with psql/pg_dump + mysql/mysqldump written in Rust.
The generated C static and shared libraries can be reused in other languages (Golang for example).
Build ruster
The build of project produces 2 go binaries, 1 static library (libruster.a) and 1 shared library (libruster.so).
The headers of C functions are in lib/ruster.h and must be present before code generation.
Using ruster
PostgreSQL
/*
#cgo LDFLAGS: -L./lib -lruster
#include "./lib/ruster.h"
*/
import "C"
import (
"os"
)
func main()
Mysql - Mariadb
/*
#cgo LDFLAGS: -L./lib -lruster
#include "./lib/ruster.h"
*/
import "C"
import (
"os"
)
func main()
Run ruster examples
Bench
Tests