Skip to content

jconti/datomic-playground

 
 

Repository files navigation

datomic-playground

Examples of how to use Datomic.

Tips

https://gist.github.com/sgnl/609557ebacd3378f3b72

  • brew services start postgresql
  • brew services stop postgresql

Console launcher can be weird to figure out... https://groups.google.com/forum/#!topic/datomic/ygPBk0_IUyM bin/console -p 8080 dev datomic:sql://?jdbc:postgresql://localhost:5432/datomic?user=datomic&password=datomic

Usage

Get Datomic:

Set up Storage:

Run the transactor by copying the template file and doing something like this with your tweaked template:

  • bin/transactor ~/.datomic/sql-transactor-template.properties
  • bin/transactor -Xmx4g ~/.datomic/sql-transactor-template.properties

Run the REPL and try it out.

The Seattle example and data are straight from the download.

datomic-playground.simple-example is a very simple example using refs, schemas, and some basics.

License

Copyright © 2018 Mark Bastian

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Clojure 100.0%