• Stars
    star
    109
  • Rank 319,077 (Top 7 %)
  • Language
    JavaScript
  • License
    Eclipse Public Li...
  • Created about 10 years ago
  • Updated almost 10 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

PossibleDB is a Database Server built with DataScript, RethinkDB, Clojure, ClojureScript, and NodeJS.

PossibleDB

logo.png

PossibleDB is a Database Server built with DataScript, RethinkDB, Clojure, ClojureScript, and NodeJS.

WARNING: HIGHLY ALPHA

PossibleDB demo video
Active Developement Branch
Installing Latest Version
Download Releases
Clojure Client API for all versions
Documentation
Change Log
Important Links
License

PossibleDB Server (latest)

1)git clone https://github.com/runexec/PossibleDB

2)cd PossibleDB/possibledb/

3)npm install rethinkdb

4)chmod +x possibledb.js

5)./possibledb.js {optional port}

Releases

All releases are located here

Clojure Client

Client 1.6 for Server 0.1-6

Leiningen Install

[possibledb-client "1.6"]

API Documentation

(:require [possibledb-client.core :as db])

(db/connect!
 "Connect to a PossibleDB server"
 [host port])

(db/get
 "Returns an entire database."
 [^:String db-name])

(db/q
 "Same q call as in DataScript"
 [^:String db-name
  query-coll])

(db/transact!
 "Same transact! call as in DataScript"
 [^:String db-name
  data-coll])

(db/create-db!
 "Create a PossibleDB db. If schema, same as DataScript."
 ([^:String db-name])
 ([^:String db-name
   ^:HashMap schema]))

(db/destroy-db!
 "Remove a DB and all of it's data"
 [^:String db-name])

(db/backup-db!
 "Writes an EDN representation of a DB to a file"
 [^:String db-name
  ^:String save-file-path])

(db/spawn-db!
 "Create a new database with all the data from original-db-name"
 [^:String original-db-name
  ^:String new-db-name])

(db/reset-db!
 "Destroy a DB and create it again"
 ([^:String db-name])
 ([^:String db-name
   ^:HashMap schema]))
  

Client 1.0 for Server 0.1

Leiningen Install

[possibledb-client "1.0"]

API Documentation

(:require [possibledb-client.core :as db])

(db/connect! [host port])

(db/q
 "Same q call as in DataScript"
 [^:String db-name
  query-coll])

(db/transact!
 "Same transact! call as in DataScript"
 [^:String db-name
  data-coll])

(db/create-db!
 "Create a PossibleDB db"
 [^:String db-name])

Documentation

PossibleDB is the bridge between DataScript and RethinkDB. Please refer to https://github.com/tonsky/datascript

Running Tests


cd possibledb/
npm install chai
lein do cljsbuild clean, cljsbuild once test
chmod +x test.js; ./test.js

Tests are located in possibledb/test/core.cljs. A mini-framework based on latte-chai is used.

Important Links

Datomic - http://docs.datomic.com/

DataScript - https://github.com/tonsky/datascript

RethinkDB - http://rethinkdb.com/

Latte Chai - https://github.com/contentjon/chai-latte

License

Eclipse Public License - v 1.0

More Repositories

1

Monorail.js

Ultra lightweight MVC framework for Node.js
JavaScript
176
star
2

chp

ClojureHomePage is a Compojure based web framework that allows you to write the backend and frontend with Clojure.
Clojure
154
star
3

Static-Prime

A static website editor and server written in Clojure and ClojureScript.
Clojure
86
star
4

equate

A Clojure fact management library
Clojure
48
star
5

porta

Clojure utility that generates a Clojure abstraction for an existing Java Class.
Clojure
21
star
6

Video2NFO

Turns any video into a screenshot palette
Shell
14
star
7

ffmpeg-clj

FFmpeg wrapper for Clojure
Clojure
11
star
8

H2H

HTML to Hiccup with one function
Clojure
8
star
9

uber-mobile-rider-endpoints

Unofficial Documentation of Uber Endpoints (Rider)
6
star
10

Moov

(TMDB)The Movie Database API Wrapper
Clojure
6
star
11

reaction

reactive programming library for Clojure
Clojure
4
star
12

ufc-clojure

UFC Dataset + Clojure
Clojure
4
star
13

concrete

Clojure symbol to source utility
Clojure
3
star
14

dominoes

ClojureScript front-end validation
JavaScript
3
star
15

WordyBirdy

Client-side Visual English Language Analysis.
CSS
3
star
16

Flamekit

Build websites faster with Flamekit Phoenix Framework Development extension for VSCode.
TypeScript
3
star
17

File2Array

Turns any file into a JavaScript Array
Shell
2
star
18

vimeo-dev

Clojure
2
star
19

Railing.sh

A project helper for Monorail.js
Shell
2
star
20

learning-big

A tool to build Japanese sentences for study
Clojure
2
star
21

Github-plus.js

Github project page enhancement script.
JavaScript
2
star
22

paramount

Paramount is a superiority sorter for the Clojure language.
Clojure
2
star
23

ntable

Clojure namespace dependency table generator
Clojure
2
star
24

receipt-clj

Documentation generator for Clojure / Lein plugin and standalone application
Clojure
2
star
25

CryptoSeries

Poloniex Time Series Overview Generator
JavaScript
2
star
26

Easy-Does-It

Optionally server backed, color coded, task management with a percentage overview.
CSS
2
star
27

Movie-point

Movie finder via relational ranking to seperate the good from the bad.
Clojure
1
star
28

niclj

Network Interface Card handler for Clojure
Clojure
1
star
29

NoNotes

Note taking made simpler
JavaScript
1
star
30

Roov

Rotten Tomatoes Movie API Wrapper
Clojure
1
star
31

Pinspiral

A bot for pinspire.com
Ruby
1
star
32

twitterdsl

experimental twitter dsl
Clojure
1
star
33

Polotick

Poloniex Infographic Generator
JavaScript
1
star
34

youtube-force-html5

Greasemonkey script to force Youtube to display HTML5 videos
JavaScript
1
star
35

enpitsu24

Dynamic Stroke Order
JavaScript
1
star
36

Polodex

Poloniex Notable Pair Changes
Shell
1
star
37

Hammer

An alternative to Om and Reagent reactive UI. Based on Mithril.js with emphasis on simplicity.
Clojure
1
star
38

Navigator

Fiat pair to NAV crypto calculator
PHP
1
star