开发者

How do I quote columns using DBIx::Class

I'm converting a script 开发者_如何学运维from using DBI to DBIx::Class and I'm having trouble figuring out how to replace quoting as in : $dbh->quote( $var ); I've seen some stuff in the docs about creating your own functions but that would require me to find out the appropriate quoting scheme, which doesn't seem to make sense.

How do I quote a variable, using DBIx::Class so that it's ready to be inserted in to the database.


You can access the underlying DBI handle's quote function by using the following:

$schema->storage->dbh->quote(...)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜