--- !ruby/object:RI::MethodDescription 
aliases: 
- !ruby/object:RI::AliasName 
  name: ">>"
block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: "Fetches records for an arbitrary SQL statement. If a block is given, it is used to iterate over the records:"
- !ruby/struct:SM::Flow::VERB 
  body: "  DB.fetch('SELECT * FROM items'){|r| p r}\n"
- !ruby/struct:SM::Flow::P 
  body: "The method returns a dataset instance:"
- !ruby/struct:SM::Flow::VERB 
  body: "  DB.fetch('SELECT * FROM items').print\n"
- !ruby/struct:SM::Flow::P 
  body: "Fetch can also perform parameterized queries for protection against SQL injection:"
- !ruby/struct:SM::Flow::VERB 
  body: "  DB.fetch('SELECT * FROM items WHERE name = ?', my_name).print\n"
full_name: Sequel::Database#fetch
is_singleton: false
name: fetch
params: (sql, *args, &block)
visibility: public
