Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Duct database.datalog.datalevin Build Status

Integrant methods for connecting to a Datalevin database from the Duct framework. These methods can also be used outside Duct in any Integrant application.

Installation

Add the following dependency to your deps.edn file:

org.duct-framework/database.datalog.datalevin {:mvn/version "0.1.3"}

Or to your Leiningen project file:

[org.duct-framework/database.datalog.datalevin "0.1.3"]

Usage

This library provides the :duct.database.datalog/datalevin Integrant key, which takes a mandatory :dir option:

{:duct.database.datalog/datalevin {:dir "./datalevin"}}

This can be either a directory path, or a dtlv connection URI string. You can also specify a schema with the :schema key:

{:duct.database.datalog/datalevin
 {:dir "./datalevin"
  :schema {:user/name {:db/valueType :db.type/string
                       :db/unique :db.unique/identity}}}}

Finally, you can also use any of the options that the datalevin.core/create-conn function takes. For example:

{:duct.database.datalog/datalevin
 {:dir "./datalevin"
  :schema {:user/name {:db/valueType :db.type/string
                       :db/unique :db.unique/identity}}
  :closed-schema? true}}

License

Copyright © 2026 James Reeves

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages