mirror of
https://gitea.invidious.io/iv-org/shard-crystal-sqlite3.git
synced 2024-08-15 00:53:26 +00:00
Update to crystal-db ~> 0.10.0
This commit is contained in:
parent
f961d2cdb6
commit
12dcc905a9
2 changed files with 3 additions and 7 deletions
|
@ -4,12 +4,12 @@ version: 0.16.0
|
||||||
dependencies:
|
dependencies:
|
||||||
db:
|
db:
|
||||||
github: crystal-lang/crystal-db
|
github: crystal-lang/crystal-db
|
||||||
version: ~> 0.9.0
|
version: ~> 0.10.0
|
||||||
|
|
||||||
authors:
|
authors:
|
||||||
- Ary Borenszweig <aborenszweig@manas.tech>
|
- Ary Borenszweig <aborenszweig@manas.tech>
|
||||||
- Brian J. Cardiff <bcardiff@manas.tech>
|
- Brian J. Cardiff <bcardiff@manas.tech>
|
||||||
|
|
||||||
crystal: 0.28.0
|
crystal: 0.35.0
|
||||||
|
|
||||||
license: MIT
|
license: MIT
|
||||||
|
|
|
@ -9,11 +9,7 @@ class SQLite3::Connection < DB::Connection
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.filename(uri : URI)
|
def self.filename(uri : URI)
|
||||||
{% if compare_versions(Crystal::VERSION, "0.30.0-0") >= 0 %}
|
|
||||||
URI.decode_www_form((uri.host || "") + uri.path)
|
URI.decode_www_form((uri.host || "") + uri.path)
|
||||||
{% else %}
|
|
||||||
URI.unescape((uri.host || "") + uri.path)
|
|
||||||
{% end %}
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def build_prepared_statement(query) : Statement
|
def build_prepared_statement(query) : Statement
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue