Code Monkey home page Code Monkey logo

rawat's Introduction

rawat

Nature does not know extinction. All it knows is transformation

  • Wernher Von Braun

Build Status

Use your Prismatic schemas as Datomic database schemas!

rawat's People

Contributors

wavejumper avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rawat's Issues

Most recent datomic release (0.9.5561.50) pull rules are throw exception on db-diff

When performing a db-diff using the latest datomic release I discovered that the db-diff function doesn't complete as expected due to an exception.

CompilerException java.lang.IllegalArgumentException: :db.error/not-a-keyword Cannot interpret as a keyword: Documentation string for an entity., no leading :, compiling:(/home/bjc/Workspace/wonderdrug/maestro/src/clj/maestro/datomic/migrations.clj:14:13)
This looks to be because the pull rule used by get-attributes defines a :db/doc [:db/ident].

This used to simply be ignored but as per more recent releases (see https://groups.google.com/forum/#!topic/datomic/F9-9KkKTSiE) this behavior has changed and causes an exception.

Changing the pull shape found at https://github.com/kibu-australia/rawat/blob/master/src/rawat/core.cljc#L213 to:

[:db/ident :db/unique :db/index :db/fulltext :db/isComponent :db/noHistory {:db/valueType [:db/ident] :db/cardinality [:db/ident]} :db/doc]

looks to resolve the problem (although I fear perhaps cause regressions in older datomic instances).

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.