Improve performance of PostgreSQL for large databases.
[quassel.git] / src / core / SQL / PostgreSQL / 20 / insert_network.sql
diff --git a/src/core/SQL/PostgreSQL/20/insert_network.sql b/src/core/SQL/PostgreSQL/20/insert_network.sql
new file mode 100644 (file)
index 0000000..d91f23c
--- /dev/null
@@ -0,0 +1,12 @@
+INSERT INTO network (userid, networkname, identityid, servercodec, encodingcodec, decodingcodec,
+                     userandomserver, perform, useautoidentify, autoidentifyservice,
+                     autoidentifypassword, useautoreconnect, autoreconnectinterval,
+                     autoreconnectretries, unlimitedconnectretries, rejoinchannels, usesasl,
+                     saslaccount, saslpassword, usecustomessagerate, messagerateburstsize,
+                     messageratedelay, unlimitedmessagerate)
+VALUES (:userid, :networkname, :identityid, :servercodec, :encodingcodec, :decodingcodec,
+        :userandomserver, :perform, :useautoidentify, :autoidentifyservice, :autoidentifypassword,
+        :useautoreconnect, :autoreconnectinterval, :autoreconnectretries, :unlimitedconnectretries,
+        :rejoinchannels, :usesasl, :saslaccount, :saslpassword, :usecustomessagerate,
+        :messagerateburstsize, :messageratedelay, :unlimitedmessagerate)
+RETURNING networkid