Guinsoo
GitHub
  • Welcome to Guinsoo!
  • Guides
    • Introduction
    • Quickstart
    • Features
    • Installation
    • Tutorial
      • Using the Server
      • Clients for Guinsoo
        • NodeJS
        • Go
        • Rust
        • C++
        • Python
        • Java
      • Web UI for Guinsoo
      • The Shell Tool
      • CSV Support
    • Security
    • Performance
    • Advanced
  • Reference
    • Commands
    • Functions
    • Aggregate
    • Window
    • Data Types
    • SQL Grammar
    • System Table
  • Support
    • FAQ
  • Appendix
    • Links
    • Architecture
    • Contribute
    • License
Powered by GitBook
On this page
  • Embedding Guisnoo in an Application
  • Step 1: Add maven dependency
  • Step 2: Connect and Execute your SQL

Was this helpful?

  1. Guides

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:

PreviousIntroductionNextFeatures

Last updated 2 years ago

Was this helpful?

Clients for Guinsoo