avinassh / libsql-client-go

Go client API for libSQL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go SDK for libSQL

License

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.

Running examples

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

License

This project is licensed under the MIT license.

Contribution

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.

About

Go client API for libSQL

License:MIT License


Languages

Language:Go 100.0%