Class Sequel::Fdbsql::Dataset
In: lib/sequel/adapters/fdbsql.rb
Parent: Sequel::Dataset

Dataset class for the FoundationDB SQL Layer that uses the pg driver.

Methods

call   fetch_rows   prepare  

Included Modules

Sequel::Fdbsql::DatasetMethods

Classes and Modules

Module Sequel::Fdbsql::Dataset::BindArgumentMethods
Module Sequel::Fdbsql::Dataset::PreparedStatementMethods

Constants

DatasetClass = self

Public Instance methods

Execute the given type of statement with the hash of values.

[Source]

     # File lib/sequel/adapters/fdbsql.rb, line 148
148:       def call(type, bind_vars=OPTS, *values, &block)
149:         ps = to_prepared_statement(type, values)
150:         ps.extend(BindArgumentMethods)
151:         ps.call(bind_vars, &block)
152:       end

Yield all rows returned by executing the given SQL and converting the types.

[Source]

     # File lib/sequel/adapters/fdbsql.rb, line 156
156:       def fetch_rows(sql)
157:         execute(sql) do |res|
158:           columns = set_columns(res)
159:           yield_hash_rows(res, columns) {|h| yield h}
160:         end
161:       end

Prepare the given type of statement with the given name, and store it in the database to be called later.

[Source]

     # File lib/sequel/adapters/fdbsql.rb, line 165
165:       def prepare(type, name=nil, *values)
166:         ps = to_prepared_statement(type, values)
167:         ps.extend(PreparedStatementMethods)
168:         if name
169:           ps.prepared_statement_name = name
170:           db.set_prepared_statement(name, ps)
171:         end
172:         ps
173:       end

[Validate]