Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Duct database.datalog

Protocol methods for accessing Datomic-flavored databases.

Installation

Add the following dependency to your deps.edn file:

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

Or to your Leiningen project file:

[org.duct-framework/database.datalog "0.2.1"]

Usage

A Datomic-flavored database connection should satisfy the Connection protocol:

(extend-type SomeConnection
  duct.database.datalog/Connection
  (-db [conn] ...)                 ;; return the database
  (-transact! [conn tx-data] ...)) ;; write transaction

The database instance, returned by -db, should satisfy the Database protocol:

(extend-type SomeDatabase
  duct.database.datalog/Database
  (-q [conn query inputs]))        ;; query the database

This simplified interface does not capture all the nuances and functionality of the databases it wraps, but it does allow for simple queries and transactions to be made.

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

Watchers

Forks

Releases

Packages

Contributors

Languages