{"repo":"tursodatabase/go-libsql","free":true,"listed":false,"github":"https://github.com/tursodatabase/go-libsql","clone":"git clone https://github.com/tursodatabase/go-libsql.git","description":"libSQL API for Go","language":"Go","stars":246,"topics":["go","libsql","sqlite"],"license":"MIT","category":"databases-storage","readme_excerpt":"LibSQL package for Go libSQL is an open source, open contribution fork of SQLite. This source repository contains libSQL API bindings for Go. Notice This package comes with a precompiled native libraries. Currently only linux amd64 , linux arm64 , darwin amd64 and darwin arm64 are supported. We're working on adding support for more platforms. Features In-memory databases and local database files, like SQLite Remote database access to libSQL server In-app replica that syncs with a libSQL server Installing go-libsql uses CGO to make calls to LibSQL. You must build your binaries with CGO ENABLED=1 . Getting Started Connecting to the database To connect to the database one needs to create a libsql.Connector using one of the factory functions: libsql.NewEmbeddedReplicaConnector or libsql.NewEmbeddedReplicaConnectorWithAutoSync . Here's an example of obtaining a sql.DB object from database/sql package: Once sql.DB object is created one can use it as any other database that supports database/sql package. Fetching updates from primary database instance If the connector is created with libsql.NewEmbeddedReplicaConnectorWithAutoSync then it will automatically fetch updates from a primary periodically. For connectors created with libsql.NewEmbeddedReplicaConnector we need to fetch updates manually by calling connector.Sync Examples Module with usage examples can be found in [example directory]. License This project is licensed under the [MIT license]. Contribution Unless you explicitly ","default_branch":null,"files":null,"tree":[],"storefront":"/r/tursodatabase","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tursodatabase/go-libsql/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}