Sha256: 8ee947c1da5c7c35d25948751d2fd17fcac348820a04e89f5c30f1cfe8d8fa49

Contents?: true

Size: 384 Bytes

Versions: 4

Compression:

Stored size: 384 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

4 entries across 4 versions & 1 rubygems

Version Path
knjrbfw-0.0.8 lib/knj/knjdb/drivers/sqlite3/knjdb_sqlite3_indexes.rb
knjrbfw-0.0.7 lib/knj/knjdb/drivers/sqlite3/knjdb_sqlite3_indexes.rb
knjrbfw-0.0.4 lib/knj/knjdb/drivers/sqlite3/knjdb_sqlite3_indexes.rb
knjrbfw-0.0.3 lib/knj/knjdb/drivers/sqlite3/knjdb_sqlite3_indexes.rb