class Baza::Driver::Tiny::Commands
Public Class Methods
new(db:)
click to toggle source
# File lib/baza/driver/tiny/commands.rb, line 2 def initialize(db:) @db = db end
Public Instance Methods
last_id()
click to toggle source
# File lib/baza/driver/tiny/commands.rb, line 6 def last_id @db.query("SELECT SCOPE_IDENTITY() AS id").first.fetch(:id) end