Class: Baza::Driver::Sqlite3::ForeignKeys

Inherits:
Object
  • Object
show all
Defined in:
lib/baza/driver/sqlite3/foreign_keys.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(db:) ⇒ ForeignKeys

Returns a new instance of ForeignKeys.



4
5
6
# File 'lib/baza/driver/sqlite3/foreign_keys.rb', line 4

def initialize(db:)
  @db = db
end

Instance Attribute Details

#dbObject (readonly)

Returns the value of attribute db.



2
3
4
# File 'lib/baza/driver/sqlite3/foreign_keys.rb', line 2

def db
  @db
end

Instance Method Details

#create(from:, to:, name: nil) ⇒ Object

rubocop:disable Lint/UnusedMethodArgument



8
9
10
# File 'lib/baza/driver/sqlite3/foreign_keys.rb', line 8

def create(from:, to:, name: nil) # rubocop:disable Lint/UnusedMethodArgument
  raise "Only support doing create table in SQLite"
end