Can I define DBIx :: Class :: ResultSource :: View after connecting?

I have a virtual table in DBIx :: Class, the definition of which should differ depending on the deployment. If I deploy against sqlite3 I can use group_concat, but when I deploy Postgres, I need to use string_aggin the definition, which I then use in

__PACKAGE__->result_source_instance->view_definition($sql);

Is there a way to do this depending on the connection?

+4
source share
1 answer

, ddl sql , , , sql -.

0

Source: https://habr.com/ru/post/1650078/


All Articles