Coder Social home page Coder Social logo

protomic's Introduction

protomic

Clojars Project

Async client API for Datomic with Promesa.

Install

[com.github.hden/protomic "0.1.0-SNAPSHOT"]

or

com.github.hden/protomic {:mvn/version "0.1.0-SNAPSHOT"}

Usage

(require '[promesa.core :as p])
(require '[datomic.client.api.async :as d])
(require '[protomic.core :as core])

(def client
  (d/client {:server-type :dev-local
             :storage-dir :mem
             :system      "dev"}))

@(p/chain (core/connect client {:db-name "dev"})
    d/db
    #(core/q {:args [%]
              :query '[:find ?tx-inst
                       :where [_ :db/txInstant ?tx-inst]]})
    #(map first %))
;; (#inst "2021-10-10T01:15:08.507-00:00" #inst "2021-10-10T01:15:08.517-00:00" #inst "1970-01-01T00:00:00.000-00:00")

License

Copyright © 2021 Haokang Den

This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0.

This Source Code may also be made available under the following Secondary Licenses when the conditions for such availability set forth in the Eclipse Public License, v. 2.0 are satisfied: GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version, with the GNU Classpath Exception which is available at https://www.gnu.org/software/classpath/license.html.

protomic's People

Contributors

hden avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar

Watchers

 avatar

protomic's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.


Dependency Lookup Warnings

  • Renovate failed to look up the following dependencies: Failed to look up clojure package com.datomic:dev-local.

Files affected: project.clj


This repository currently has no open or pending branches.

Detected dependencies

leiningen
project.clj
  • org.clojure:clojure 1.11.1
  • com.cognitect:anomalies 0.1.12
  • diehard:diehard 0.11.8
  • com.datomic:dev-local 0.9.232
  • com.datomic:client-cloud 1.0.123
  • funcool:promesa 11.0.671

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.