https://github.com/escherize/historia
SQLite to remember what data functions expect to see
https://github.com/escherize/historia
Last synced: 9 months ago
JSON representation
SQLite to remember what data functions expect to see
- Host: GitHub
- URL: https://github.com/escherize/historia
- Owner: escherize
- Created: 2021-01-03T17:03:58.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-04T18:15:22.000Z (almost 5 years ago)
- Last Synced: 2025-07-09T09:21:18.701Z (12 months ago)
- Language: Clojure
- Size: 4.88 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# historia
A defn macro to observe and remember what args, body, output and more have been passed to what functions, using sql lite.
## Installation
[escherize/historia "0.1.1"]
## Usage
``` clojure
(defn-historia ink [x]
(let [k (let [k (let [k (* 10 x)] k)] k)] k))
(ink 1)
(one "ink")
;;=> {:id 434,
;; :fn_name "ink",
;; :arguments [x],
;; :argument_values [1],
;; :body [(let [k (let [k (let [k (* 10 x)] k)] k)] k)],
;; :end_time 1609624096662,
;; :start_time 1609624096662,
;; :output 10}
(count (many "ink"))
;;=> 10
```
## License
Copyright © 2020 Bryan Maass
This program and the accompanying materials are made available under the
terms of the Eclipse Public License 2.0 which is available at
http://www.eclipse.org/legal/epl-2.0.
This Source Code may also be made available under the following Secondary
Licenses when the conditions for such availability set forth in the Eclipse
Public License, v. 2.0 are satisfied: GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or (at your
option) any later version, with the GNU Classpath Exception which is available
at https://www.gnu.org/software/classpath/license.html.