This repository has been archived on 2023-10-11. You can view files and clone it, but cannot push or open issues or pull requests.

59 lines
1.5 KiB
JSON
Raw Normal View History

2023-03-19 22:59:11 +01:00
{
"db": "PostgreSQL",
"06ff93d6978b99c498a4b08c0a04ade650c225b3bc0a3d99b69fa4fc6b7fd6fa": {
"describe": {
"columns": [],
"nullable": [],
"parameters": {
"Left": [
"Text",
"Text",
"Text",
"Text",
"Text"
]
}
},
"query": "\nINSERT INTO facts (\"last_interaction_id\", \"channel_id\", \"author_id\", \"name\", \"value\") \nVALUES ($1, $2, $3, $4, $5)\nON CONFLICT ON CONSTRAINT facts_origin_key DO UPDATE SET value = $5, version = facts.version + 1\n "
},
"8aeb82857796f9a8b0b41c3ac600ca4fdd5075efdba27e16f08d33ab9cf0b7bc": {
"describe": {
"columns": [
{
"name": "value",
"ordinal": 0,
"type_info": "Text"
},
{
"name": "version",
"ordinal": 1,
"type_info": "Int4"
},
{
"name": "created_at",
"ordinal": 2,
"type_info": "Timestamptz"
},
{
"name": "updated_at",
"ordinal": 3,
"type_info": "Timestamptz"
}
],
"nullable": [
false,
false,
false,
false
],
"parameters": {
"Left": [
"Text",
"Text",
"Text"
]
}
},
"query": "\nSELECT \"value\", \"version\", \"created_at\", \"updated_at\"\nFROM facts\nWHERE\n channel_id IS NOT DISTINCT FROM $1 AND\n author_id = $2 AND\n name = $3\n "
}
}