mirror of
https://gitea.invidious.io/iv-org/shard-crystal-db.git
synced 2024-08-15 00:53:32 +00:00
Rebase to latest DB version and upgrade to Crystal 0.18
This commit is contained in:
parent
7fcedc6711
commit
552b6e12b4
6 changed files with 48 additions and 9 deletions
|
@ -131,10 +131,18 @@ class DummyDriver < DB::Driver
|
|||
read(String).to_i32
|
||||
end
|
||||
|
||||
def read(t : Int32?.class)
|
||||
read(String?).try &.to_i32
|
||||
end
|
||||
|
||||
def read(t : Int64.class)
|
||||
read(String).to_i64
|
||||
end
|
||||
|
||||
def read(t : Int64?.class)
|
||||
read(String?).try &.to_i64
|
||||
end
|
||||
|
||||
def read(t : Float32.class)
|
||||
read(String).to_f32
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue