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

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: "Formats an INSERT statement using the given values. The API is a little complex, and best explained by example:"
- !ruby/struct:SM::Flow::VERB 
  body: "  # Default values\n  DB[:items].insert_sql #=&gt; 'INSERT INTO items DEFAULT VALUES'\n  DB[:items].insert_sql({}) #=&gt; 'INSERT INTO items DEFAULT VALUES'\n  # Values without columns\n  DB[:items].insert_sql(1,2,3) #=&gt; 'INSERT INTO items VALUES (1, 2, 3)'\n  DB[:items].insert_sql([1,2,3]) #=&gt; 'INSERT INTO items VALUES (1, 2, 3)'\n  # Values with columns\n  DB[:items].insert_sql([:a, :b], [1,2]) #=&gt; 'INSERT INTO items (a, b) VALUES (1, 2)'\n  DB[:items].insert_sql(:a =&gt; 1, :b =&gt; 2) #=&gt; 'INSERT INTO items (a, b) VALUES (1, 2)'\n  # Using a subselect\n  DB[:items].insert_sql(DB[:old_items]) #=&gt; 'INSERT INTO items SELECT * FROM old_items\n  # Using a subselect with columns\n  DB[:items].insert_sql([:a, :b], DB[:old_items]) #=&gt; 'INSERT INTO items (a, b) SELECT * FROM old_items\n"
full_name: Sequel::Dataset#insert_sql
is_singleton: false
name: insert_sql
params: (*values)
visibility: public
