This is the source repository of the Java SDK for LibSQL. You can either connect to a local SQLite/LibSQL database (embedded in the client) or to a remote LibSQL server.
- Batch transactions
- Authentication
- Local database (coming soon)
- Interactive transactions (coming soon)
import org.libsql.client.Client;
import org.libsql.client.ResultSet;
// ...
String url = "<insert URL here>";
String authToken = "<insert auth token here>";
Client client = Client.builder(url).authToken(authToken).build();
ResultSet rs = client.execute("SELECT * FROM users");
System.out.println(rs.columns);
for (ResultSet.Row row : rs.rows) {
System.out.println(row.toString());
}
This project is licensed under the MIT license.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, shall be licensed as MIT, without any additional terms or conditions.