Files

Class/Module Index [+]

Quicksearch

Sequel::Firebird::DatasetMethods

Public Instance Methods

insert(*values) click to toggle source

Insert given values into the database.

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

Insert a record returning the record inserted

# File lib/sequel/adapters/shared/firebird.rb, line 177
def insert_select(*values)
  with_sql_first(insert_select_sql(*values))
end
insert_select_sql(*values) click to toggle source

The SQL to use for an insert_select, adds a RETURNING clause to the insert unless the RETURNING clause is already present.

# File lib/sequel/adapters/shared/firebird.rb, line 183
def insert_select_sql(*values)
  ds = opts[:returning] ? self : returning
  ds.insert_sql(*values)
end
requires_sql_standard_datetimes?() click to toggle source
# File lib/sequel/adapters/shared/firebird.rb, line 188
def requires_sql_standard_datetimes?
  true
end
supports_cte?(type=:select) click to toggle source
# File lib/sequel/adapters/shared/firebird.rb, line 192
def supports_cte?(type=:select)
  type == :select
end
supports_insert_select?() click to toggle source
# File lib/sequel/adapters/shared/firebird.rb, line 196
def supports_insert_select?
  true
end
supports_intersect_except?() click to toggle source

Firebird does not support INTERSECT or EXCEPT

# File lib/sequel/adapters/shared/firebird.rb, line 201
def supports_intersect_except?
  false
end
supports_returning?(type) click to toggle source
# File lib/sequel/adapters/shared/firebird.rb, line 205
def supports_returning?(type)
  type == :insert
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.