mirror of
https://gitea.invidious.io/iv-org/shard-crystal-db.git
synced 2024-08-15 00:53:32 +00:00
add Connection#last_inserted_id
extract QueryMethods modules and use it in Database and Connection "add" finalize methods, but they cause GC warnings
This commit is contained in:
parent
1fb0b8a82b
commit
8c0313a306
6 changed files with 60 additions and 36 deletions
|
@ -12,6 +12,10 @@ class DummyDriver < DB::Driver
|
|||
@last_statement = DummyStatement.new(self, query.split.map { |r| r.split ',' })
|
||||
end
|
||||
|
||||
def last_insert_id : Int64
|
||||
0
|
||||
end
|
||||
|
||||
def perform_close
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue