45 lines
1.2 KiB
Markdown
45 lines
1.2 KiB
Markdown
LLGo wrapper of sqlite
|
|
=====
|
|
[](https://github.com/goplus/sqlite/actions/workflows/go.yml)
|
|
[](https://github.com/goplus/sqlite/releases)
|
|
[](https://pkg.go.dev/github.com/goplus/sqlite)
|
|
[](https://github.com/goplus/llgo)
|
|
[](https://github.com/goplus/gop)
|
|
|
|
## How to install
|
|
|
|
### on macOS (Homebrew)
|
|
```sh
|
|
brew install sqlite3
|
|
```
|
|
### on linux
|
|
```sh
|
|
apt-get install -y libsqlite3-dev
|
|
```
|
|
### from source code
|
|
```sh
|
|
git clone https://github.com/goplus/sqlite.git
|
|
cd sqlite
|
|
git submodule init
|
|
git submodule update
|
|
mkdir build.dir
|
|
cd build.dir
|
|
../sqlite/configure --enable-shared
|
|
sudo make install
|
|
```
|
|
|
|
## Demos
|
|
|
|
The `_demo` directory contains our demos (it start with `_` to prevent the `go` command from compiling it):
|
|
|
|
* [sqlitedemo](_demo/sqlitedemo/demo.go): a basic sqlite demo
|
|
|
|
### How to run demos
|
|
|
|
To run the demos in directory `_demo`:
|
|
|
|
```sh
|
|
cd <demo-directory> # eg. cd _demo/sqlitedemo
|
|
llgo run .
|
|
```
|