--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: "Extract a datetime_part (e.g. year, month) from self:"
- !ruby/struct:SM::Flow::VERB 
  body: "  :date.extract(:year) # SQL:  extract(year FROM &quot;date&quot;)\n"
- !ruby/struct:SM::Flow::P 
  body: Also has the benefit of returning the result as a NumericExpression instead of a generic ComplexExpression.
- !ruby/struct:SM::Flow::P 
  body: The extract function is in the SQL standard, but it doesn't doesn't use the standard function calling convention.
full_name: Sequel::SQL::ComplexExpressionMethods#extract
is_singleton: false
name: extract
params: (datetime_part)
visibility: public
