mirror of
https://gitea.invidious.io/iv-org/shard-crystal-db.git
synced 2024-08-15 00:53:32 +00:00
update Slice(UInt8) to Bytes
This commit is contained in:
parent
11e24e1c65
commit
8025ecaa13
5 changed files with 17 additions and 17 deletions
|
@ -70,7 +70,7 @@ module DB
|
|||
# Types supported to interface with database driver.
|
||||
# These can be used in any `ResultSet#read` or any `Database#query` related
|
||||
# method to be used as query parameters
|
||||
TYPES = [Nil, String, Int32, Int64, Float32, Float64, Slice(UInt8)]
|
||||
TYPES = [Nil, String, Int32, Int64, Float32, Float64, Bytes]
|
||||
|
||||
# See `DB::TYPES` in `DB`. `Any` is a union of all types in `DB::TYPES`
|
||||
{% begin %}
|
||||
|
|
|
@ -57,8 +57,8 @@ module DB
|
|||
return rs.read?(Float32)
|
||||
when Float64.class
|
||||
return rs.read?(Float64)
|
||||
when Slice(UInt8).class
|
||||
return rs.read?(Slice(UInt8))
|
||||
when Bytes.class
|
||||
return rs.read?(Bytes)
|
||||
when Nil.class
|
||||
return rs.read?(Int32)
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue