Module: Sequel::Firebird::DatasetMethods
- Included in:
- Dataset
- Defined in:
- lib/sequel/adapters/shared/firebird.rb
Constant Summary collapse
- BOOL_TRUE =
'1'.freeze
- BOOL_FALSE =
'0'.freeze
- NULL =
LiteralString.new('NULL').freeze
- FIRST =
" FIRST ".freeze
- SKIP =
" SKIP ".freeze
- DEFAULT_FROM =
" FROM RDB$DATABASE"
Instance Method Summary collapse
-
#insert(*values) ⇒ Object
Insert given values into the database.
-
#insert_select(*values) ⇒ Object
Insert a record returning the record inserted.
- #requires_sql_standard_datetimes? ⇒ Boolean
- #supports_cte?(type = :select) ⇒ Boolean
- #supports_insert_select? ⇒ Boolean
-
#supports_intersect_except? ⇒ Boolean
Firebird does not support INTERSECT or EXCEPT.
- #supports_returning?(type) ⇒ Boolean
Instance Method Details
#insert(*values) ⇒ Object
Insert given values into the database.
168 169 170 171 172 173 174 |
# 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) ⇒ Object
Insert a record returning the record inserted
177 178 179 |
# File 'lib/sequel/adapters/shared/firebird.rb', line 177 def insert_select(*values) returning.insert(*values){|r| return r} end |
#requires_sql_standard_datetimes? ⇒ Boolean
181 182 183 |
# File 'lib/sequel/adapters/shared/firebird.rb', line 181 def requires_sql_standard_datetimes? true end |
#supports_cte?(type = :select) ⇒ Boolean
185 186 187 |
# File 'lib/sequel/adapters/shared/firebird.rb', line 185 def supports_cte?(type=:select) type == :select end |
#supports_insert_select? ⇒ Boolean
189 190 191 |
# File 'lib/sequel/adapters/shared/firebird.rb', line 189 def supports_insert_select? true end |
#supports_intersect_except? ⇒ Boolean
Firebird does not support INTERSECT or EXCEPT
194 195 196 |
# File 'lib/sequel/adapters/shared/firebird.rb', line 194 def supports_intersect_except? false end |
#supports_returning?(type) ⇒ Boolean
198 199 200 |
# File 'lib/sequel/adapters/shared/firebird.rb', line 198 def supports_returning?(type) type == :insert end |