hugsql

A Clojure library for embracing SQL

  • 所有者: layerware/hugsql
  • 平台:
  • 許可證: Apache License 2.0
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

HugSQL

alt tag

A Clojure library for embracing SQL.

Clojars Project

CircleCI

Documentation

Full documentation is at hugsql.org

API Documentation

API Docs

Recent Changes

0.5.1

  • fix for regression from #46: #105

0.5.0

  • namespaced keywords support #56
    (Thanks Sebastian Poeplau! @sebastionpoeplau)
  • next.jdbc adapter #96
    (Thanks Nikola Peric! @nikolap and
    Sean Corfield! @seancorfield)
  • add :arglists metadata to generated functions #88
  • fix default adapter set race condition #46
  • fix parsing of escaped single-quotes in SQL string #89
  • add doc link to ClickHouse adapter #91

0.4.9

  • preserve file/line metadata from parsed SQL and attach to vars
    (issue #77)
    (Thanks Phil Hagelberg!
    @technomancy)
  • fix unbound fn error w/ Clojure expression definitions (issue
    #59)
  • pass the generated function names to the adapter (pull request
    #83) (Thanks Conor
    McDermottroe! @conormcd)
  • bump version dependencies

0.4.8

  • add validation exception for no value for :name (issue
    #39)
  • add clojure.jdbc support for .getGeneratedKeys
  • stricter parsing for whitespace; (issue
    #41)
  • fix truncated SQL when blank comment encountered (issue
    #44)
  • add test profiles for clojure versions
  • fix multiarity macros definitions (Thanks to Joel Kaasinen)
    (pull request #66)
  • doc fixes
  • bump version dependencies

0.4.7

  • fix deprecations for latest clojure.java.jdbc changes (issue
    #38)

0.4.6

  • extend identifier param types to support SQL aliases (issue
    #33)
  • fix clj expr eating trailing newline in parser (issue
    #37)
  • fix command & result being ignored in private fns (issue
    #32)

0.4.5

  • support pg double-colon type cast when suffix of HugSQL param (issue
    #30)
  • doc: update escaping colon section to mention double-colon usage

0.4.4

  • fix parser error regarding whitespace (issue
    #27)
  • fix handling of vector value parameters (issue
    #28)
  • docs: add faq on preventing sql injection

0.4.3

  • report better error message for missing HugSQL header (issue
    #24)
  • fix parser handling of Windows newlines (issue
    #26)
  • missing parameter validation now checks
    deep-get param names
  • add type hints for reflection warnings

0.4.2

  • fix parameter mismatch validation for false/nil (issue
    #23)
  • fix sqlvec-fn* not propagating all options
  • add doc clarification on tuple list multi-record insert vs large
    batch insert (issue
    #22)
  • small doc fixes

0.4.1

  • map-of-db-fns, map-of-sqlvec-fns & -from-string variants for easier
    custom use of hugsql-created functions (issue
    #19) (See
    Other Useful Functions)
  • link to postgresql async adapter fixed (pull
    #20)
  • minor test & doc updates

0.4.0

  • Escape colon in SQL (issue
    #13)
  • def-db-fns-from-string & def-sql-fns-from-string (issue
    #16)
  • Added several functions that operate on individual SQL statements,
    which are useful at the REPL or for one-off composing. (See
    Other Useful Functions)
  • Specify a function as private and other metadata (issue #17)
  • Better support for Returning Execute and Insert w/ Return Keys (See
    Insert Usage) (issues
    #8 and
    #15)
  • Clojure Expressions
  • Snippets
  • Parameter Name Deep-Get for drilling down into parameter data
  • Better docs & tests

See CHANGELOG for more

License

Copyright © 2018 Layerware, Inc.

Distributed under the Apache License, Version 2.0

主要指標

概覽
名稱與所有者layerware/hugsql
主編程語言Clojure
編程語言Clojure (語言數: 1)
平台
許可證Apache License 2.0
所有者活动
創建於2015-10-07 16:24:10
推送於2024-12-02 14:27:33
最后一次提交2024-12-02 15:27:33
發布數20
最新版本名稱0.5.3 (發布於 )
第一版名稱0.1.1 (發布於 )
用户参与
星數698
關注者數14
派生數53
提交數222
已啟用問題?
問題數121
打開的問題數5
拉請求數23
打開的拉請求數0
關閉的拉請求數9
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?