#insertQuery="""INSERT INTO ` + "`%s`" + ` (dirhash,name,directory,meta) VALUES(?,?,?,?) ON DUPLICATE KEY UPDATE meta = VALUES(meta)"""
insertQuery=""
[mysql2]#ormemsql,tidb
enabled=false
createTable="""
CREATETABLEIFNOTEXISTS` + "`%s`" + `(
dirhashBIGINT,
@ -149,12 +145,12 @@ connection_max_idle = 2
connection_max_open=100
connection_max_lifetime_seconds=0
interpolateParams=false
[postgres]#orcockroachdb,YugabyteDB
#EmptyinsertQuerywillusethedefaultinsertquery
#exampleinsertQuerycanbeforUPSERTsyntax:
#insertQuery="""INSERT INTO "%[1]s" (dirhash,name,directory,meta) VALUES($1,$2,$3,$4) ON CONFLICT ON CONSTRAINT "%[1]s_pkey" DO UPDATE SET meta = EXCLUDED.meta WHERE "%[1]s".meta != EXCLUDED.meta"""
#insertQuery="""INSERT INTO ` + "`%s`" + ` (dirhash,name,directory,meta) VALUES(?,?,?,?) ON DUPLICATE KEY UPDATE meta = VALUES(meta)"""
insertQuery=""
[postgres]#orcockroachdb,YugabyteDB
#CREATETABLEIFNOTEXISTSfilemeta(
#dirhashBIGINT,
#nameVARCHAR(65535),
@ -173,13 +169,13 @@ sslmode = "disable"
connection_max_idle=100
connection_max_open=100
connection_max_lifetime_seconds=0
[postgres2]
enabled=false
#EmptyinsertQuerywillusethedefaultinsertquery
#exampleinsertQuerycanbeforUPSERTsyntax:
#insertQuery="""INSERT INTO "%[1]s" (dirhash,name,directory,meta) VALUES($1,$2,$3,$4) ON CONFLICT ON CONSTRAINT "%[1]s_pkey" DO UPDATE SET meta = EXCLUDED.meta WHERE "%[1]s".meta != EXCLUDED.meta"""
insertQuery=""
[postgres2]
enabled=false
createTable="""
CREATETABLEIFNOTEXISTS"%s"(
dirhashBIGINT,
@ -199,6 +195,10 @@ sslmode = "disable"
connection_max_idle=100
connection_max_open=100
connection_max_lifetime_seconds=0
#EmptyinsertQuerywillusethedefaultinsertquery
#exampleinsertQuerycanbeforUPSERTsyntax:
#insertQuery="""INSERT INTO "%[1]s" (dirhash,name,directory,meta) VALUES($1,$2,$3,$4) ON CONFLICT ON CONSTRAINT "%[1]s_pkey" DO UPDATE SET meta = EXCLUDED.meta WHERE "%[1]s".meta != EXCLUDED.meta"""