Closed encratite closed 12 years ago
Partially implemented in:
https://github.com/epicvrvs/RiotControl/commit/4b95fd67cdc362c9fa0e73b98fb52132b57a7901
Haven't added CTE support but made the pragma
stuff conditional. In theory it could work with more DBMSes now, I'm just not sure if the temporary view works for that. The next problem is dealing with items. This is still SQLite sepcific syntax.
Added PostgreSQL support: https://github.com/epicvrvs/RiotControl/commit/3f2fcdbc6bb7fda0bde285da49b4742e01e85f73
I think this should do for now. Might add MySQL later.
In particular MySQL is requested a lot. Uhkis also requested PostgreSQL support. This is not that difficult at this point. Just that one query with a
view
should probably be replaced by the old CTE string for PostgreSQL. Otherwise the current code is fairly portable except for thepragma
use that is specific to SQLite.