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
| use uuid::Uuid; | |
| use worktable::prelude::*; | |
| use worktable::worktable; | |
| worktable!( | |
| name: User, | |
| persist: true, | |
| columns: { | |
| id: i64 primary_key autoincrement, | |
| name: String, |
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
| worktable!( | |
| name: My, | |
| columns: { | |
| id: u64 primary_key autoincrement, | |
| val: i64, | |
| attribute: String, | |
| }, | |
| indexes: { | |
| attribute_idx: attribute, |
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
| ; -*- mode: clojure; -*- | |
| ; vim: filetype=clojure | |
| (logging/init {:file "riemann.log"}) | |
| ; Listen on the local interface over TCP (5555), UDP (5555), and websockets | |
| ; (5556) | |
| (let [host "127.0.0.1"] | |
| (tcp-server {:host host}) | |
| (udp-server {:host host}) |