Updated to Crystal 0.17.4

This commit is contained in:
Ary Borenszweig 2016-06-16 12:14:57 -03:00
parent 6ee8c90ba7
commit f834b0f8a6
4 changed files with 18 additions and 14 deletions

View file

@ -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

View file

@ -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

View file

@ -15,7 +15,7 @@ module DB
# :nodoc:
getter connection
def initialize(@connection)
def initialize(@connection : Connection)
end
protected def do_close