mirror of
https://gitea.invidious.io/iv-org/shard-crystal-db.git
synced 2024-08-15 00:53:32 +00:00
Updated to Crystal 0.17.4
This commit is contained in:
parent
6ee8c90ba7
commit
f834b0f8a6
4 changed files with 18 additions and 14 deletions
|
@ -76,7 +76,7 @@ module DB
|
|||
alias Any = Nil | String | Int32 | Int64 | Float32 | Float64 | Slice(UInt8)
|
||||
|
||||
# Result of a `#exec` statement.
|
||||
record ExecResult, rows_affected, last_insert_id
|
||||
record ExecResult, rows_affected : Int32, last_insert_id : Int64
|
||||
|
||||
# :nodoc:
|
||||
def self.driver_class(driver_name) : Driver.class
|
||||
|
|
|
@ -13,8 +13,10 @@ module DB
|
|||
# Returns the uri with the connection settings to the database
|
||||
getter uri
|
||||
|
||||
@connection : Connection?
|
||||
|
||||
# :nodoc:
|
||||
def initialize(@driver, @uri)
|
||||
def initialize(@driver : Driver, @uri : URI)
|
||||
@in_pool = true
|
||||
@connection = @driver.build_connection(self)
|
||||
end
|
||||
|
|
|
@ -15,7 +15,7 @@ module DB
|
|||
# :nodoc:
|
||||
getter connection
|
||||
|
||||
def initialize(@connection)
|
||||
def initialize(@connection : Connection)
|
||||
end
|
||||
|
||||
protected def do_close
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue