mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 06:28:54 +00:00
Add templating system to account for differences in PSQL syntax
This commit is contained in:
1 parent
e065d78f2e
commit
5eb10014fa
5 files changed
+72
-24
No files matched your search
@@ -1,10 +1,21 @@
|
||||
INSERT IGNORE INTO carbon_users SET
|
||||
id = :id,
|
||||
muted = :muted,
|
||||
deafened = :deafened,
|
||||
selectedchannel = :selectedchannel,
|
||||
displayname = :displayname,
|
||||
lastwhispertarget = :lastwhispertarget,
|
||||
whisperreplytarget = :whisperreplytarget,
|
||||
spying = :spying,
|
||||
ignoringdms = :ignoringdms;
|
||||
INSERT{!PSQL: IGNORE} INTO carbon_users(
|
||||
id,
|
||||
muted,
|
||||
deafened,
|
||||
selectedchannel,
|
||||
displayname,
|
||||
lastwhispertarget,
|
||||
whisperreplytarget,
|
||||
spying,
|
||||
ignoringdms
|
||||
) VALUES (
|
||||
:id,
|
||||
:muted,
|
||||
:deafened,
|
||||
:selectedchannel,
|
||||
:displayname,
|
||||
:lastwhispertarget,
|
||||
:whisperreplytarget,
|
||||
:spying,
|
||||
:ignoringdms
|
||||
){PSQL: ON CONFLICT DO NOTHING};
|
||||
@@ -1 +1 @@
|
||||
INSERT IGNORE INTO carbon_ignores (id, ignoredplayer) VALUES(:id, :ignoredplayer)
|
||||
INSERT{!PSQL: IGNORE} INTO carbon_ignores (id, ignoredplayer) VALUES(:id, :ignoredplayer){PSQL: ON CONFLICT DO NOTHING};
|
||||
@@ -1 +1 @@
|
||||
INSERT IGNORE INTO carbon_leftchannels (id, channel) VALUES(:id, :channel)
|
||||
INSERT{!PSQL: IGNORE} INTO carbon_leftchannels (id, channel) VALUES(:id, :channel){PSQL: ON CONFLICT DO NOTHING};
|
||||
Reference in new issue
Block a user