xtdb.sql.clj Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xtdb-core Show documentation
Show all versions of xtdb-core Show documentation
An open source document database with bitemporal graph queries
(ns xtdb.sql
(:require [xtdb.sql.plan :as plan]
[xtdb.util :as util]))
(def compile-query
(-> (fn compile-query
([query] (compile-query query {}))
([query query-opts]
(let [{:keys [col-syms] :as plan} (plan/plan-statement query query-opts)]
(-> plan
(plan/->logical-plan)
(vary-meta assoc
:warnings (:warnings (meta plan))
:param-count (:param-count (meta plan))
:ordered-outer-projection col-syms)
#_(doto clojure.pprint/pprint))))) ;; <>
util/lru-memoize)) ;; <>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy