6. Part 2 Installation of Datomic Database on FreeBSD 11.2 - tanalam2411/freebsd GitHub Wiki

1. Run Transactor, Console and REPL in separate terminal:

transactor_console_rehl


2. Executing main.clj script to create database by name testdb and table testtable

root@freebsd:~/performance/datomic/datomic-free-0.9.5703/code # ll
-rw-r--r--  1 root  wheel  472 Nov 26 10:13 main.clj
-rw-r--r--  1 root  wheel  507 Nov 26 10:13 testtable-data0.edn
-rw-r--r--  1 root  wheel  414 Nov 26 10:13 testtable-schema.edn

i) main.clj- main clojure script

ii) testtable-schema.edn- includes testtable schema

iii) testtable-data0.edn - sample input data


3. Executing main.clj script:

To execute script move to REPL terminal

user=> (load-file "/root/performance/datomic/datomic-free-0.9.5703/code/test1.clj") 

main.clj_output


4. Check result in console:

http://localhost:8081/browse result