Upgrade to Crystal 0.28.0 (#38)

This commit is contained in:
Brian J. Cardiff 2019-04-18 15:58:02 -03:00 committed by GitHub
parent a95182be08
commit c621a9b701
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 32 additions and 10 deletions

View file

@ -9,11 +9,15 @@ class SQLite3::Connection < DB::Connection
end
def self.filename(uri : URI)
URI.unescape (if path = uri.path
(uri.host || "") + path
else
uri.opaque.not_nil!
end)
{% if compare_versions(Crystal::VERSION, "0.28.0") >= 0 %}
URI.unescape((uri.host || "") + uri.path)
{% else %}
URI.unescape (if path = uri.path
(uri.host || "") + path
else
uri.opaque.not_nil!
end)
{% end %}
end
def build_prepared_statement(query)