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.3.1
This commit is contained in:
parent
c7e3e2dc3d
commit
bda4b8e184
2 changed files with 3 additions and 1 deletions
|
@ -4,6 +4,8 @@ class SQLite3::Connection < DB::Connection
|
|||
filename = self.class.filename(database.uri)
|
||||
# TODO maybe enable Flag::URI to parse query string in the uri as additional flags
|
||||
check LibSQLite3.open_v2(filename, out @db, (Flag::READWRITE | Flag::CREATE), nil)
|
||||
rescue
|
||||
raise DB::ConnectionRefused.new
|
||||
end
|
||||
|
||||
def self.filename(uri : URI)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue