Sha256: 03e2d6a63610205d698256850b7e04f07fab9e85c86490eb26883674a997d0a6
Contents?: true
Size: 333 Bytes
Versions: 18
Compression:
Stored size: 333 Bytes
Contents
class Baza::Driver::Mysql::User attr_reader :name def initialize(args) @args = args @data = args.fetch(:data) @db = args.fetch(:db) end def name @data.fetch(:User) end def host @data.fetch(:Host) end def drop @db.query("DROP USER '#{@db.esc(name)}'@'#{@db.esc(host)}'") true end end
Version data entries
18 entries across 18 versions & 1 rubygems