Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump immudb to v1.5.0 in java sample #42

Merged
merged 1 commit into from
Sep 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions java/simple-app/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Building and running the sample application

These samples use the [official immudb Java client] (`immudb4j`).

[Official immudb Java client]: https://github.com/codenotary/immudb4j

Please note that you need to have access to an `immudb` server in order to be able to use these examples.<br/>
But that's very easy: just take a look at [running immudb](https://docs.immudb.io/master/running/download.html) to know how to download and run it locally.

`immudb4j` is published at [Maven Central](https://search.maven.org/artifact/io.codenotary/immudb4j).

To build the application just run: `./gradlew build`
To run the application just run: `./gradlew run`
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,12 @@ public static void main(String[] args) {
client.beginTransaction();

client.sqlExec(
"CREATE TABLE IF NOT EXISTS mytable(id INTEGER, title VARCHAR[256], active BOOLEAN, PRIMARY KEY id)");
"CREATE TABLE IF NOT EXISTS mytable(id INTEGER, title VARCHAR(256), active BOOLEAN, PRIMARY KEY id)");

client.commitTransaction();

client.beginTransaction();

final int rows = 10;

for (int i = 0; i < rows; i++) {
Expand Down
Loading