Included modules
- Sequel::SQL::CastMethods
- Sequel::SQL::OrderMethods
- Sequel::SQL::BooleanMethods
- Sequel::SQL::NumericMethods
- Sequel::SQL::QualifyingMethods
- Sequel::SQL::StringMethods
- Sequel::SQL::SubscriptMethods
- Sequel::SQL::ComplexExpressionMethods
- Sequel::SQL::IsDistinctFrom::Methods
- Sequel::Postgres::ArrayOpMethods
- Sequel::Postgres::HStoreOpMethods
- Sequel::Postgres::InetOpMethods
- Sequel::Postgres::JSONOpMethods
- Sequel::Postgres::RangeOpMethods
- Sequel::Postgres::PGRowOp::ExpressionMethods
- Sequel::SQLite::JSONOpMethods
- Sequel::SQL::AliasMethods
Public Instance methods
identifier()
Returns receiver wrapped in an Sequel::SQL::Identifier.
:a.identifier # SQL: "a"
[show source]
# File lib/sequel/extensions/core_extensions.rb 209 def identifier 210 Sequel::SQL::Identifier.new(self) 211 end
sql_function(*args)
Returns a Sequel::SQL::Function with this as the function name, and the given arguments.
:now.sql_function # SQL: now() :sum.sql_function(:a) # SQL: sum(a) :concat.sql_function(:a, :b) # SQL: concat(a, b)
[show source]
# File lib/sequel/extensions/core_extensions.rb 219 def sql_function(*args) 220 Sequel::SQL::Function.new(self, *args) 221 end