Skip to content

inv-jishnu/scalardb-sample-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scalar DB Sample App

This is a small sample application for Scalar DB named contact management.

The commands to run the application using gradle is provided below:

Using transaction service

Create schema using email_transaction.json.

To add contact

$ ./gradlew run --args="-mode transaction -action add -name <name> -email <email_id> -phone <phone_no>"

To get contact

$ ./gradlew run --args="-mode transaction -action get -name <name> -email <email_id>"

To get all contacts

$ ./gradlew run --args="-mode transaction -action scan -name <name>"

Using storage service

Create schema using email.json.

To add contact

$ ./gradlew run --args="-mode storage -action add -name <name> -email <email_id> -phone <phone_no>"

To get contact

$ ./gradlew run --args="-mode storage -action get -name <name> -email <email_id>"

To get all contacts

$ ./gradlew run --args="-mode storage -action scan -name <name>"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages