angusiguess / loki

Clojure Library to query AWS Athena

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

Clojure Library to query AWS Athena

The library provides just one function `qeury` that takes

Usage

(init! "s3://my-results-bucket"
       {:auth-type :profile
        :profile   (System/getenv "AWS_PROFILE")
        :region    "us-east-1"})

(require '[loki.core :as loki])

(loki/query sqly-query-map values overrides)

;; example
(loki/query database-name
            {:select   {:timestamp :datetime :id :session-id},
             :from     :orders
             :order-by [[:timestamp :desc]]
             :where    {:id "{{order-id}}"}}
            {:order-id "xyz123"}
            {:limit 3})

License - Apache 2.0

Copyright 2019 Omnyway Inc.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

AUTHORS

About

Clojure Library to query AWS Athena

License:Apache License 2.0


Languages

Language:Clojure 100.0%