Sha256: 535e85694534b00dbc09b4ac57515b7d2f249fc69b21f6ea5b521db830e6b4c8

Contents?: true

Size: 419 Bytes

Versions: 96

Compression:

Stored size: 419 Bytes

Contents

class KnjDB_sqlite3::Indexes
  def initialize(args)
    @args = args
  end
end

class KnjDB_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

96 entries across 96 versions & 1 rubygems

Version Path
knjrbfw-0.0.24 lib/knj/knjdb/drivers/sqlite3/knjdb_sqlite3_indexes.rb
knjrbfw-0.0.23 lib/knj/knjdb/drivers/sqlite3/knjdb_sqlite3_indexes.rb
knjrbfw-0.0.22 lib/knj/knjdb/drivers/sqlite3/knjdb_sqlite3_indexes.rb
knjrbfw-0.0.21 lib/knj/knjdb/drivers/sqlite3/knjdb_sqlite3_indexes.rb
knjrbfw-0.0.20 lib/knj/knjdb/drivers/sqlite3/knjdb_sqlite3_indexes.rb
knjrbfw-0.0.19 lib/knj/knjdb/drivers/sqlite3/knjdb_sqlite3_indexes.rb
knjrbfw-0.0.18 lib/knj/knjdb/drivers/sqlite3/knjdb_sqlite3_indexes.rb
knjrbfw-0.0.17 lib/knj/knjdb/drivers/sqlite3/knjdb_sqlite3_indexes.rb
knjrbfw-0.0.16 lib/knj/knjdb/drivers/sqlite3/knjdb_sqlite3_indexes.rb
knjrbfw-0.0.15 lib/knj/knjdb/drivers/sqlite3/knjdb_sqlite3_indexes.rb
knjrbfw-0.0.14 lib/knj/knjdb/drivers/sqlite3/knjdb_sqlite3_indexes.rb
knjrbfw-0.0.13 lib/knj/knjdb/drivers/sqlite3/knjdb_sqlite3_indexes.rb
knjrbfw-0.0.12 lib/knj/knjdb/drivers/sqlite3/knjdb_sqlite3_indexes.rb
knjrbfw-0.0.11 lib/knj/knjdb/drivers/sqlite3/knjdb_sqlite3_indexes.rb
knjrbfw-0.0.10 lib/knj/knjdb/drivers/sqlite3/knjdb_sqlite3_indexes.rb
knjrbfw-0.0.9 lib/knj/knjdb/drivers/sqlite3/knjdb_sqlite3_indexes.rb