Class: Baza::Driver::Sqlite3::ForeignKeys
- Inherits:
-
Object
- Object
- Baza::Driver::Sqlite3::ForeignKeys
- Defined in:
- lib/baza/driver/sqlite3/foreign_keys.rb
Instance Attribute Summary collapse
-
#db ⇒ Object
readonly
Returns the value of attribute db.
Instance Method Summary collapse
-
#create(from:, to:, name: nil) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument.
-
#initialize(db:) ⇒ ForeignKeys
constructor
A new instance of ForeignKeys.
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
#db ⇒ Object (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 |