mirror of
https://gitea.invidious.io/iv-org/shard-crystal-db.git
synced 2024-08-15 00:53:32 +00:00
allow result_set#each
This commit is contained in:
parent
4dd0312934
commit
c16dc42e96
2 changed files with 17 additions and 0 deletions
|
@ -5,6 +5,12 @@ module DB
|
|||
def initialize(@statement : Statement)
|
||||
end
|
||||
|
||||
def each
|
||||
while has_next
|
||||
yield
|
||||
end
|
||||
end
|
||||
|
||||
abstract def has_next : Bool
|
||||
|
||||
# def read(t : T.class) : T
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue