Class: FluentQuery::Driver Abstract
- Inherits:
-
Object
- Object
- FluentQuery::Driver
- Defined in:
- lib/fluent-query/driver.rb
Overview
This class is abstract.
Represents abstract query driver.
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
Instance Method Summary collapse
- #build_query(query) ⇒ Object
- #check_conditionally(query, sym, *args, &block) ⇒ Object
- #close_connection! ⇒ Object
- #correct_token(name, args) ⇒ Object
- #do(query) ⇒ Object
- #execute(query) ⇒ Object
-
#initialize(connection) ⇒ Driver
constructor
A new instance of Driver.
- #known_token?(group, token_name) ⇒ Boolean
- #native_connection ⇒ Object
- #null ⇒ Object
- #open_connection(settings) ⇒ Object
- #operator_token?(token_name) ⇒ Boolean
- #prepare(query) ⇒ Object
- #query_class ⇒ Object
- #quote_boolean(boolean) ⇒ Object
- #quote_date_time(date) ⇒ Object
- #quote_equality(datatype, mode = :comparing) ⇒ Object
- #quote_float(float) ⇒ Object
- #quote_identifier(field) ⇒ Object
- #quote_integer(integer) ⇒ Object
- #quote_operator(operator) ⇒ Object
- #quote_placeholder(placeholder) ⇒ Object
- #quote_string(string) ⇒ Object
- #quote_subquery(subquery) ⇒ Object
- #relevant_method?(name) ⇒ Boolean
Constructor Details
#initialize(connection) ⇒ Driver
Returns a new instance of Driver.
25 26 27 28 29 30 31 |
# File 'lib/fluent-query/driver.rb', line 25 def initialize(connection) if self.instance_of? FluentQuery::Driver not_implemented end @connection = connection end |
Instance Attribute Details
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
18 19 20 |
# File 'lib/fluent-query/driver.rb', line 18 def connection @connection end |
Instance Method Details
#build_query(query) ⇒ Object
107 108 109 |
# File 'lib/fluent-query/driver.rb', line 107 def build_query(query) not_implemented end |
#check_conditionally(query, sym, *args, &block) ⇒ Object
285 286 |
# File 'lib/fluent-query/driver.rb', line 285 def check_conditionally(query, sym, *args, &block) end |
#close_connection! ⇒ Object
240 241 242 |
# File 'lib/fluent-query/driver.rb', line 240 def close_connection! not_implemented end |
#correct_token(name, args) ⇒ Object
296 297 298 |
# File 'lib/fluent-query/driver.rb', line 296 def correct_token(name, args) return [name, args] end |
#do(query) ⇒ Object
260 261 262 |
# File 'lib/fluent-query/driver.rb', line 260 def do(query) not_implemented end |
#execute(query) ⇒ Object
250 251 252 |
# File 'lib/fluent-query/driver.rb', line 250 def execute(query) not_implemented end |
#known_token?(group, token_name) ⇒ Boolean
52 53 54 |
# File 'lib/fluent-query/driver.rb', line 52 def known_token?(group, token_name) not_implemented end |
#native_connection ⇒ Object
230 231 232 |
# File 'lib/fluent-query/driver.rb', line 230 def native_connection not_implemented end |
#null ⇒ Object
172 173 174 |
# File 'lib/fluent-query/driver.rb', line 172 def null not_implemented end |
#open_connection(settings) ⇒ Object
220 221 222 |
# File 'lib/fluent-query/driver.rb', line 220 def open_connection(settings) not_implemented end |
#operator_token?(token_name) ⇒ Boolean
62 63 64 |
# File 'lib/fluent-query/driver.rb', line 62 def operator_token?(token_name) not_implemented end |
#prepare(query) ⇒ Object
273 274 275 |
# File 'lib/fluent-query/driver.rb', line 273 def prepare(query) not_implemented end |
#query_class ⇒ Object
97 98 99 |
# File 'lib/fluent-query/driver.rb', line 97 def query_class not_implemented end |
#quote_boolean(boolean) ⇒ Object
182 183 184 |
# File 'lib/fluent-query/driver.rb', line 182 def quote_boolean(boolean) not_implemented end |
#quote_date_time(date) ⇒ Object
192 193 194 |
# File 'lib/fluent-query/driver.rb', line 192 def quote_date_time(date) not_implemented end |
#quote_equality(datatype, mode = :comparing) ⇒ Object
87 88 89 |
# File 'lib/fluent-query/driver.rb', line 87 def quote_equality(datatype, mode = :comparing) not_implemented end |
#quote_float(float) ⇒ Object
152 153 154 |
# File 'lib/fluent-query/driver.rb', line 152 def quote_float(float) not_implemented end |
#quote_identifier(field) ⇒ Object
162 163 164 |
# File 'lib/fluent-query/driver.rb', line 162 def quote_identifier(field) not_implemented end |
#quote_integer(integer) ⇒ Object
142 143 144 |
# File 'lib/fluent-query/driver.rb', line 142 def quote_integer(integer) not_implemented end |
#quote_operator(operator) ⇒ Object
72 73 74 |
# File 'lib/fluent-query/driver.rb', line 72 def quote_operator(operator) not_implemented end |
#quote_placeholder(placeholder) ⇒ Object
119 120 121 |
# File 'lib/fluent-query/driver.rb', line 119 def quote_placeholder(placeholder) not_implemented end |
#quote_string(string) ⇒ Object
132 133 134 |
# File 'lib/fluent-query/driver.rb', line 132 def quote_string(string) not_implemented end |
#quote_subquery(subquery) ⇒ Object
202 203 204 |
# File 'lib/fluent-query/driver.rb', line 202 def quote_subquery(subquery) not_implemented end |
#relevant_method?(name) ⇒ Boolean
41 42 43 |
# File 'lib/fluent-query/driver.rb', line 41 def relevant_method?(name) not_implemented end |