How to use prepare statement?


#1

I need to run a large number of row into my database. In order to get
the fast speed, I would like to use prepared statements. But I can not
get the mysql connection handle in ActiveRecord, because the
MysqlAdapter doesn’t permit to access the Mysql connection handle. So
how can I get the connection handle or construct a new connection by
using the same configure information?

Thanks!