-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add templating system to account for differences in PSQL syntax
- Loading branch information
Showing
5 changed files
with
72 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}; |