mirror of
https://gitea.invidious.io/iv-org/shard-crystal-sqlite3.git
synced 2024-08-15 00:53:26 +00:00
Ensure close of statement
This commit is contained in:
parent
5b08d2f48b
commit
22d83727df
2 changed files with 31 additions and 0 deletions
|
@ -71,6 +71,7 @@ class SQLite3::Statement
|
|||
def execute(binds : Enumerable | Slice(UInt8), &block)
|
||||
result_set = execute(binds)
|
||||
yield result_set
|
||||
ensure
|
||||
close
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue