Beispiel #1
0
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)
}
Beispiel #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
}
Beispiel #3
0
func Version() string {
	p := C.sqlite3_libversion()
	return C.GoString(p)
}
Beispiel #4
0
func main() {
	version := C.GoString(C.sqlite3_libversion())

	fmt.Println("libsqlite3 version", version)
}
Beispiel #5
0
// 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())
}
Beispiel #6
0
func LibVersion() (version string) {
	cver := C.sqlite3_libversion()
	version = C.GoString(cver)

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