Sha256: a87bc3877236c413187f2885c343eef380e1cb555ab605b77455fa2db26ec775

Contents?: true

Size: 165 Bytes

Versions: 5

Compression:

Stored size: 165 Bytes

Contents

class Baza::Driver::Tiny::Commands
  def initialize(db:)
    @db = db
  end

  def last_id
    @db.query("SELECT SCOPE_IDENTITY() AS id").first.fetch(:id)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
baza-0.0.38 lib/baza/driver/tiny/commands.rb
baza-0.0.37 lib/baza/driver/tiny/commands.rb
baza-0.0.36 lib/baza/driver/tiny/commands.rb
baza-0.0.35 lib/baza/driver/tiny/commands.rb
baza-0.0.34 lib/baza/driver/tiny/commands.rb