Class: DB::MariaDB::Adapter
- Inherits:
-
Object
- Object
- DB::MariaDB::Adapter
- Defined in:
- lib/db/mariadb/adapter.rb
Overview
A database adapter for connecting to MariaDB and MySQL servers.
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#call ⇒ Object
Create a new database connection.
-
#initialize(**options) ⇒ Adapter
constructor
Initialize a new adapter with connection options.
- #The connection options.=(connectionoptions. = (value)) ⇒ Object
Constructor Details
#initialize(**options) ⇒ Adapter
Initialize a new adapter with connection options.
14 15 16 |
# File 'lib/db/mariadb/adapter.rb', line 14 def initialize(**) = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
19 20 21 |
# File 'lib/db/mariadb/adapter.rb', line 19 def end |
Instance Method Details
#call ⇒ Object
Create a new database connection.
23 24 25 |
# File 'lib/db/mariadb/adapter.rb', line 23 def call Connection.new(**) end |
#The connection options.=(connectionoptions. = (value)) ⇒ Object
19 |
# File 'lib/db/mariadb/adapter.rb', line 19 attr :options |