Class: Fx::Adapters::MySQL::Functions Private

Inherits:
Object
  • Object
show all
Defined in:
lib/fx/adapters/mysql/functions.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Fetches defined functions from the mysql connection.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(connection) ⇒ Functions

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Functions.



14
15
16
# File 'lib/fx/adapters/mysql/functions.rb', line 14

def initialize(connection)
  @connection = connection
end

Class Method Details

.all(*args) ⇒ Array<Fx::Function>

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Wraps #all as a static facade.

Returns:

  • (Array<Fx::Function>)


10
11
12
# File 'lib/fx/adapters/mysql/functions.rb', line 10

def self.all(*args)
  new(*args).all
end

Instance Method Details

#allArray<Fx::Function>

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

All of the functions that this connection has defined.

Returns:

  • (Array<Fx::Function>)


21
22
23
# File 'lib/fx/adapters/mysql/functions.rb', line 21

def all
  functions_from_mysql.map { |function| to_fx_function(function) }
end