go_sqlite

command
v0.30.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

README

Use Golang and SQLite with Occlum

This project demonstrates how Occlum enables Golang programs with SQLite library calls running in SGX enclaves. The way to use a SQL (or SQL-like) database in Go is through the database/sql package. The SQL package exposes an ideal set of generic APIs for a variety of SQL or SQL-like databases. The SQL package itself must be used in conjunction with a database driver package.

The demo program is based on a widely used sqlite3 driver conforming to the built-in database/sql interface and passing the compatibility test suite at https://github.com/bradfitz/go-sql-test. You can run the Golang SQLite demo on Occlum via

./run_go_sqlite_demo.sh

The demo program adds a database source file golang_sql_driver.db, creates a table SqlDrivers, inserts a list of Golang SQL database driver records, queries all records, and prints them out.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL