3 ms·
Also, for instance, the (quite nice) Sequel library in ruby makes this painless DB["insert into foo (bar, baz, qux) VALUES (?, ?, ?)", bar, baz, qux].insert A
by TylerE 14y ago
Also, for instance, the (quite nice) Sequel library in ruby makes this painless
DB["insert into foo (bar, baz, qux) VALUES (?, ?, ?)", bar, baz, qux].insert
And the library handles all the escaping, and even type conversion for you (e.g. Date objects to SQL compatible date strings)