crawlnicle/.sqlx/query-039d63754fc6bf841f95cff20eab23521458314055015463ef073a9e20dcd7ea.json

132 lines
3.3 KiB
JSON
Raw Normal View History

{
"db_name": "PostgreSQL",
"query": "insert into feed (\n title, url, type, description\n ) values (\n $1, $2, COALESCE($3, 'unknown'::feed_type), $4\n ) on conflict (url) do update set\n title = excluded.title,\n url = excluded.url,\n type = COALESCE(excluded.type, feed.type),\n description = excluded.description\n returning\n feed_id,\n title,\n url,\n type as \"feed_type: FeedType\",\n description,\n crawl_interval_minutes,\n last_crawl_error,\n etag_header,\n last_modified_header,\n last_crawled_at,\n last_entry_published_at,\n created_at,\n updated_at,\n deleted_at\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "feed_id",
"type_info": "Uuid"
},
{
"ordinal": 1,
"name": "title",
"type_info": "Text"
},
{
"ordinal": 2,
"name": "url",
"type_info": "Varchar"
},
{
"ordinal": 3,
"name": "feed_type: FeedType",
"type_info": {
"Custom": {
"name": "feed_type",
"kind": {
"Enum": [
"atom",
"json",
"rss0",
"rss1",
"rss2",
"unknown"
]
}
}
}
},
{
"ordinal": 4,
"name": "description",
"type_info": "Text"
},
{
"ordinal": 5,
"name": "crawl_interval_minutes",
"type_info": "Int4"
},
{
"ordinal": 6,
"name": "last_crawl_error",
"type_info": "Text"
},
{
"ordinal": 7,
"name": "etag_header",
"type_info": "Text"
},
{
"ordinal": 8,
"name": "last_modified_header",
"type_info": "Text"
},
{
"ordinal": 9,
"name": "last_crawled_at",
"type_info": "Timestamptz"
},
{
"ordinal": 10,
"name": "last_entry_published_at",
"type_info": "Timestamptz"
},
{
"ordinal": 11,
"name": "created_at",
"type_info": "Timestamptz"
},
{
"ordinal": 12,
"name": "updated_at",
"type_info": "Timestamptz"
},
{
"ordinal": 13,
"name": "deleted_at",
"type_info": "Timestamptz"
}
],
"parameters": {
"Left": [
"Text",
"Varchar",
{
"Custom": {
"name": "feed_type",
"kind": {
"Enum": [
"atom",
"json",
"rss0",
"rss1",
"rss2",
"unknown"
]
}
}
},
"Text"
]
},
"nullable": [
false,
true,
false,
false,
true,
false,
true,
true,
true,
true,
true,
false,
true,
true
]
},
"hash": "039d63754fc6bf841f95cff20eab23521458314055015463ef073a9e20dcd7ea"
}