mirror of
https://gitea.invidious.io/iv-org/shard-crystal-sqlite3.git
synced 2024-08-15 00:53:26 +00:00
Code cleanup due to Crystal >= 0.28.0
This commit is contained in:
parent
2bfda2aa13
commit
4b4441bb37
3 changed files with 3 additions and 22 deletions
|
@ -9,15 +9,7 @@ class SQLite3::Connection < DB::Connection
|
|||
end
|
||||
|
||||
def self.filename(uri : URI)
|
||||
{% 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 %}
|
||||
URI.unescape((uri.host || "") + uri.path)
|
||||
end
|
||||
|
||||
def build_prepared_statement(query)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue