allow result_set#each

This commit is contained in:
Brian J. Cardiff 2016-01-28 20:51:03 -03:00
parent 4dd0312934
commit c16dc42e96
2 changed files with 17 additions and 0 deletions

View file

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