An open API service indexing awesome lists of open source software.

https://github.com/heathlogancampbell/valkrinsql

📚 A merge between NoSql and Sql that supports ERM. meme
https://github.com/heathlogancampbell/valkrinsql

meme sql

Last synced: over 1 year ago
JSON representation

📚 A merge between NoSql and Sql that supports ERM. meme

Awesome Lists containing this project

README

          

# ValkrinSql

## Example
We will save a class with a few random details to the database

```java
import lombok.ToString;

@ToString
public class ExampleBase
{
public long yeet = -1;
public boolean day = false;
public String message= "Hello world";
}
```

```java

import dev.sprock.valkrin.Valkrin;
import dev.sprock.valkrin.tracker.ValkrinTracker;

public class Exmaple
{
public static void main(String[] args)
{
Valkrin valkrin = new Valkrin("localhost", "3306", "valkrin", "root", "");

ValkrinTracker exmapleTracker = new ValkrinTracker<>(ExampleBase.class, "Examples", valkrin);

ExampleBase thingToSave = new ExampleBase();

//Save the data to the database
exmapleTracker.save("Username", thingToSave);

//load the data from the database
ExampleBase thingFromLoad = exmapleTracker.load("Username");

System.out.println(thingFromLoad);

}
}
```