Elektrine lite

← Feed

@rdnielsen@floss.social

2026-08-30 15:20 UTC

@c0dec0dec0de@hachyderm.io If you run your SQL scripts with execsql.py (https://pypi.org/project/execsql/), you can use a system variable named CURRENT_DBMS to identify whether Postgres or Sqlite is being used. In conjunction with the IF metacommand, which works the same across all DBMSs, you can then branch to the appropriate code. Disclaimer: I wrote execsql.

Replies (0)

No replies.