Capy-Bearer Documentation

sqlite_connect

host call

Capy

function sqlite_connect(path : string) u64

Description

Use sqlite_connect to open an SQLite database. Call sqlite_disconnect when you finish with the handle.

Return Values

SQLite handle, or zero when the connection fails.

Example

Capy

var db := sqlite_connect(":memory:")
print(db != 0, "\n")
if db != 0 { sqlite_disconnect(db) }