Class Index [+]

Quicksearch

Sequel::Firebird::DatasetMethods

Constants

BOOL_TRUE
BOOL_FALSE
NULL
SELECT_CLAUSE_METHODS
INSERT_CLAUSE_METHODS
FIRST
SKIP

Public Instance Methods

insert(*values) click to toggle source

Insert given values into the database.

     # File lib/sequel/adapters/shared/firebird.rb, line 159
159:       def insert(*values)
160:         if @opts[:sql] || @opts[:returning]
161:           super
162:         else
163:           returning(insert_pk).insert(*values){|r| return r.values.first}
164:         end
165:       end
insert_select(*values) click to toggle source

Insert a record returning the record inserted

     # File lib/sequel/adapters/shared/firebird.rb, line 168
168:       def insert_select(*values)
169:         returning.insert(*values){|r| return r}
170:       end
requires_sql_standard_datetimes?() click to toggle source
     # File lib/sequel/adapters/shared/firebird.rb, line 172
172:       def requires_sql_standard_datetimes?
173:         true
174:       end
supports_insert_select?() click to toggle source
     # File lib/sequel/adapters/shared/firebird.rb, line 176
176:       def supports_insert_select?
177:         true
178:       end
supports_intersect_except?() click to toggle source

Firebird does not support INTERSECT or EXCEPT

     # File lib/sequel/adapters/shared/firebird.rb, line 181
181:       def supports_intersect_except?
182:         false
183:       end

Private Instance Methods

insert_clause_methods() click to toggle source
     # File lib/sequel/adapters/shared/firebird.rb, line 187
187:       def insert_clause_methods
188:         INSERT_CLAUSE_METHODS
189:       end
insert_pk(*values) click to toggle source
     # File lib/sequel/adapters/shared/firebird.rb, line 191
191:       def insert_pk(*values)
192:         pk = db.primary_key(opts[:from].first)
193:         pk ? Sequel::SQL::Identifier.new(pk) : NULL
194:       end
literal_false() click to toggle source
     # File lib/sequel/adapters/shared/firebird.rb, line 196
196:       def literal_false
197:         BOOL_FALSE
198:       end
literal_true() click to toggle source
     # File lib/sequel/adapters/shared/firebird.rb, line 200
200:       def literal_true
201:         BOOL_TRUE
202:       end
select_clause_methods() click to toggle source

The order of clauses in the SELECT SQL statement

     # File lib/sequel/adapters/shared/firebird.rb, line 205
205:       def select_clause_methods
206:         SELECT_CLAUSE_METHODS
207:       end
select_limit_sql(sql) click to toggle source
     # File lib/sequel/adapters/shared/firebird.rb, line 209
209:       def select_limit_sql(sql)
210:         if l = @opts[:limit]
211:           sql << FIRST
212:           literal_append(sql, l)
213:         end
214:         if o = @opts[:offset]
215:           sql << SKIP
216:           literal_append(sql, o)
217:         end
218:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.