Sha256: 374b1d389a81b97ba7d9a04c636a080fad33addecb629f4d0df96a26e565fa90

Contents?: true

Size: 435 Bytes

Versions: 1

Compression:

Stored size: 435 Bytes

Contents

class Baza::Driver::Sqlite3::Indexes
  def initialize(args)
    @args = args
  end
end

class Baza::Driver::Sqlite3::Indexes::Index
  attr_reader :columns
  
  def initialize(args)
    @args = args
    @columns = []
  end
  
  def name
    return @args[:data][:name]
  end
  
  def drop
    @args[:db].query("DROP INDEX `#{self.name}`")
  end
  
  def data
    return {
      "name" => name,
      "columns" => @columns
    }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
baza-0.0.0 include/drivers/sqlite3/sqlite3_indexes.rb