An paring down of trulia's page to get the essence of how it works.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (ns datascript-to-datomic-util | |
| (:require [datascript :as d])) | |
| ;;;; a utility to help with a datomic-datascript roundtrip process involving: | |
| ;;; 1. export some data from a datomic database and transact into a datascript instance. | |
| ;;; 2. perform one or more transactions against datascript. | |
| ;;; 3. transact the sum of all changes made against datascript back into datomic in a single tx | |
| ;;; this namespace contains two public functions: | |
| ;;; listen-for-changes: listen to datascript transactions and build up a record of changes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (ns reagent-test.core | |
| (:require [reagent.core :as reagent :refer [atom]] | |
| [datascript :as d] | |
| [cljs-uuid-utils :as uuid])) | |
| (enable-console-print!) | |
| (defn bind | |
| ([conn q] | |
| (bind conn q (atom nil))) |
This is an implementation of monads in a way that is pretty for LiveScript(given its amazing syntactic structures). This was originally a comment for LiveScript #426.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """:mod:`hstore` --- Using PostgreSQL hstore with SQLAlchemy | |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| .. note:: | |
| I released it under Public Domain. Feel free to use! | |
| It provides :class:`Hstore` type which makes you to store Python | |
| dictionaries into hstore columns in PostgreSQL. For example:: |
NewerOlder