示例#1
0
文件: low.go 项目: lye/go-db-sqlite3
func sqlVersion() string {
	cp := C.sqlite3_libversion()
	if cp == nil {
		// The call can't really fail since it returns
		// a string constant, but let's be safe...
		sqlPanic("can't get library version")
	}
	return C.GoString(cp)
}
示例#2
0
// Return SQLite library Version information.
func Version() (libVersion string, libVersionNumber int, sourceId string) {
	libVersion = C.GoString(C.sqlite3_libversion())
	libVersionNumber = int(C.sqlite3_libversion_number())
	sourceId = C.GoString(C.sqlite3_sourceid())
	return libVersion, libVersionNumber, sourceId
}
示例#3
0
func Version() string {
	p := C.sqlite3_libversion()
	return C.GoString(p)
}
示例#4
0
func main() {
	version := C.GoString(C.sqlite3_libversion())

	fmt.Println("libsqlite3 version", version)
}
示例#5
0
文件: util.go 项目: gidden/cloudlus
// Version returns the SQLite version as a string in the format "X.Y.Z[.N]".
// [http://www.sqlite.org/c3ref/libversion.html]
func Version() string {
	if initErr != nil {
		return ""
	}
	return goStr(C.sqlite3_libversion())
}
示例#6
0
func LibVersion() (version string) {
	cver := C.sqlite3_libversion()
	version = C.GoString(cver)

	return
}
示例#7
0
// LibVersion returns the version of the SQLite3 engine.
func LibVersion() string {
	return C.GoString(C.sqlite3_libversion())
}