This is the source repository of the Go SDK for libSQL. You can either connect to a local SQLite/libSQL database (embedded in the client) or to a remote libSQL server.
Using HTTPS:
go run -ldflags="-X 'main.dbUrl=https://<login>:<password>@<sqld db url>'" examples/sql/counter/main.go
Using Websockets:
go run -ldflags="-X 'main.dbUrl=wss://<sqld db url>?jwt=<jwt authorization token>'" examples/sql/counter/main.go
This project is licensed under the MIT license.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in sqld
by you, shall be licensed as MIT, without any additional terms or conditions.