Skip to content

Skunk-inspired library for SQLite on JVM, Node.js, and Native

License

Notifications You must be signed in to change notification settings

s5bug/porcupine

 
 

Repository files navigation

porcupine

Skunk-inspired library for SQLite on JVM, Node.js, and Native!

libraryDependencies += "com.armanbilge" %%% "porcupine" % "<version>"

Installation

JVM

Delegates to the JDBC Driver.

Node.js

Requires the better-sqlite3 npm package.

npm i better-sqlite3

Native

You must provide a native build of SQLite3. Here are three interesting ways to do this.

  1. Dynamically linking to an existing installation of sqlite3.
nativeConfig ~= { c => c.withLinkingOptions(c.linkingOptions :+ "-lsqlite3") }
  1. Statically linking a pre-compiled SQLite into your binary. sn-vcpkg is a great way to do this. An ad-hoc configuration might look like this:
nativeConfig ~= { c => c.withLinkingOptions(c.linkingOptions :+ "/usr/local/Cellar/sqlite/3.41.0/lib/libsqlite3.a") }
  1. Compiling SQLite as part of your project. You can download the SQLite amalgation as a single sqlite3.c file and place it in your resources/scala-native directory.

About

Skunk-inspired library for SQLite on JVM, Node.js, and Native

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Scala 97.9%
  • Nix 2.1%