我在 SQLite 数据库中有一个表,其中一列以纪元秒为单位存储文件 mtimes。
我现在想在某个月份修改过的表文件中搜索?
在原始 SQL 中,我会这样做:
select * from my_table where strftime('%Y-%m', mtime, "unixepoch") = "2009-08"
有没有办法通过 DBIx::Class 有效地做到这一点?有没有可能做
$m->search({ \'strftime('%Y-%m', mtime, "unixepoch")' => "2009-08" })
我尝试了解 DBIx::Class::InflateColumn::DateTime 是否有办法,但我没有找到。
谢谢
西蒙娜