Add SQLX offline query cache for trading_agent_service

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
jgrusewski
2025-10-16 07:29:33 +02:00
parent 4e0661c30d
commit 27dad268db
2 changed files with 71 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
{
"db_name": "PostgreSQL",
"query": "\n SELECT universe_id, criteria, instruments, metrics, created_at, updated_at\n FROM trading_universes\n WHERE universe_id = $1\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "universe_id",
"type_info": "Text"
},
{
"ordinal": 1,
"name": "criteria",
"type_info": "Jsonb"
},
{
"ordinal": 2,
"name": "instruments",
"type_info": "Jsonb"
},
{
"ordinal": 3,
"name": "metrics",
"type_info": "Jsonb"
},
{
"ordinal": 4,
"name": "created_at",
"type_info": "Timestamptz"
},
{
"ordinal": 5,
"name": "updated_at",
"type_info": "Timestamptz"
}
],
"parameters": {
"Left": [
"Text"
]
},
"nullable": [
false,
false,
false,
false,
false,
false
]
},
"hash": "887f5a4d58a911c2ad2bc33d86bf57816c410415b666482852d233d88b8b63ee"
}

View File

@@ -0,0 +1,19 @@
{
"db_name": "PostgreSQL",
"query": "\n INSERT INTO trading_universes (\n universe_id, criteria, instruments, metrics, created_at, updated_at\n )\n VALUES ($1, $2, $3, $4, $5, $6)\n ON CONFLICT (universe_id) DO UPDATE\n SET criteria = EXCLUDED.criteria,\n instruments = EXCLUDED.instruments,\n metrics = EXCLUDED.metrics,\n updated_at = EXCLUDED.updated_at\n ",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Text",
"Jsonb",
"Jsonb",
"Jsonb",
"Timestamptz",
"Timestamptz"
]
},
"nullable": []
},
"hash": "adc202700591650ef4881556c12f30324d1479bbd3c182361b7d3f6e0c12bdcf"
}