mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-23 17:05:36 +01:00
Update package name in go CI
This commit is contained in:
3
.github/workflows/go.yml
vendored
3
.github/workflows/go.yml
vendored
@@ -34,10 +34,9 @@ jobs:
|
||||
go-version: "1.23"
|
||||
|
||||
- name: build Go bindings library
|
||||
run: cargo build --package limbo-go
|
||||
run: cargo build --package turso-go
|
||||
|
||||
- name: run Go tests
|
||||
env:
|
||||
LD_LIBRARY_PATH: ${{ github.workspace }}/target/debug:$LD_LIBRARY_PATH
|
||||
run: go test
|
||||
|
||||
|
||||
@@ -174,8 +174,8 @@ print(res.fetchone())
|
||||
1. Clone the repository
|
||||
2. Build the library and set your LD_LIBRARY_PATH to include turso's target directory
|
||||
```console
|
||||
cargo build --package limbo-go
|
||||
export LD_LIBRARY_PATH=/path/to/limbo/target/debug:$LD_LIBRARY_PATH
|
||||
cargo build --package turso-go
|
||||
export LD_LIBRARY_PATH=/path/to/turso/target/debug:$LD_LIBRARY_PATH
|
||||
```
|
||||
3. Use the driver
|
||||
|
||||
@@ -191,7 +191,7 @@ import (
|
||||
_ "github.com/tursodatabase/turso"
|
||||
)
|
||||
|
||||
conn, _ = sql.Open("sqlite3", "sqlite.db")
|
||||
conn, _ = sql.Open("turso", "sqlite.db")
|
||||
defer conn.Close()
|
||||
|
||||
stmt, _ := conn.Prepare("select * from users")
|
||||
|
||||
Reference in New Issue
Block a user