DB::MariaDBSourceDBMariaDBAdapter

class Adapter

A database adapter for connecting to MariaDB and MySQL servers.

Definitions

def initialize(**options)

Initialize a new adapter with connection options.

Signature

parameter options Hash

Connection options to be passed to the connection.

Implementation

def initialize(**options)
	@options = options
end

attr :options

Signature

attribute Hash

The connection options.

def call

Create a new database connection.

Signature

returns Connection

A new connection instance.

Implementation

def call
	Connection.new(**@options)
end