Quickstart

Embedding in your application

Embedding Guisnoo in an Application

This database can be used in application mode, or in server mode. To use it in embedded mode, you need to:

  • Add the guinsoo*.jar to the classpath

  • Use the JDBC driver class: org.guinsoo.Driver

  • The database URL jdbc:guinsoo:~/test opens the database test in your user home directory

  • A new database is automatically created

Step 1: Add maven dependency

<dependency>
    <groupId>io.github.ciusji</groupId>
    <artifactId>guinsoo</artifactId>
    <version>0.2.2</version>
</dependency>

Step 2: Connect and Execute your SQL

Class.forName("org.guinsoo.Driver");
Connection conn = DriverManager.getConnection("jdbc:guinsoo:mem:");
Statement stat = conn.createStatement();

stat.execute("select 1+2");

stat.close();
conn.close();

For more languages, such as Python, Java, C++, Rust, Node, or others, please refer as follow:

Clients for Guinsoo

Last updated