Possibly, this can be broken down into two simpler problems.
Implement "IN" operator using DBIx::Class. Inspired by the manual describing LIKE expressions, I tried $schema->resultset('my_table')->search({ id => {'in', '(12,13,17)'} }) but this did not work.
Implement "NOT" operator using DBIx::Class. In analogy to "-and" and "-or," I tried $schema->resultset('my_table')->search({ -not => {id => 17} }), again without success.
How can such WHERE clauses be implemented using DBIx::Class?