AFAIK Zabbix comes in two SQL flavours, PostreSQL and MySQL. Why not to adopt a database abstraction layer, to decouple source code from the SQL dialect?
P.S. I hardly think this wasn't discussed already, but I've searched for database abstraction and found nothing. Links to previous discussions on this would be very appreciated!
P.S. I hardly think this wasn't discussed already, but I've searched for database abstraction and found nothing. Links to previous discussions on this would be very appreciated!

Comment