mirror of https://github.com/synctv-org/synctv
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
142 lines
4.1 KiB
JSON
142 lines
4.1 KiB
JSON
{
|
|
"db_name": "PostgreSQL",
|
|
"query": "\n INSERT INTO room_playback_progress (\n room_id,\n media_id,\n playlist_id,\n target,\n target_hash,\n \"position\",\n version\n )\n VALUES ($1, $2, $3, $4, $5, $6, 0)\n ON CONFLICT (\n room_id,\n COALESCE(media_id, 0),\n COALESCE(playlist_id, 0),\n target_hash\n )\n DO UPDATE SET target = EXCLUDED.target,\n \"position\" = EXCLUDED.\"position\",\n version = room_playback_progress.version + 1\n RETURNING id AS \"id!\",\n room_id AS \"room_id!: RoomId\",\n media_id AS \"media_id?: MediaId\",\n playlist_id AS \"playlist_id?: PlaylistId\",\n target AS \"target?: crate::models::ProviderTarget\",\n target_hash AS \"target_hash!\",\n \"position\" AS \"position!\",\n created_at AS \"created_at!\",\n updated_at AS \"updated_at!\",\n version AS \"version!\"\n ",
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"ordinal": 0,
|
|
"name": "id!",
|
|
"type_info": "Int8",
|
|
"origin": {
|
|
"Table": {
|
|
"table": "room_playback_progress",
|
|
"name": "id"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 1,
|
|
"name": "room_id!: RoomId",
|
|
"type_info": "Int8",
|
|
"origin": {
|
|
"Table": {
|
|
"table": "room_playback_progress",
|
|
"name": "room_id"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 2,
|
|
"name": "media_id?: MediaId",
|
|
"type_info": "Int8",
|
|
"origin": {
|
|
"Table": {
|
|
"table": "room_playback_progress",
|
|
"name": "media_id"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 3,
|
|
"name": "playlist_id?: PlaylistId",
|
|
"type_info": "Int8",
|
|
"origin": {
|
|
"Table": {
|
|
"table": "room_playback_progress",
|
|
"name": "playlist_id"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 4,
|
|
"name": "target?: crate::models::ProviderTarget",
|
|
"type_info": "Jsonb",
|
|
"origin": {
|
|
"Table": {
|
|
"table": "room_playback_progress",
|
|
"name": "target"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 5,
|
|
"name": "target_hash!",
|
|
"type_info": "Text",
|
|
"origin": {
|
|
"Table": {
|
|
"table": "room_playback_progress",
|
|
"name": "target_hash"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 6,
|
|
"name": "position!",
|
|
"type_info": "Float8",
|
|
"origin": {
|
|
"Table": {
|
|
"table": "room_playback_progress",
|
|
"name": "position"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 7,
|
|
"name": "created_at!",
|
|
"type_info": "Timestamptz",
|
|
"origin": {
|
|
"Table": {
|
|
"table": "room_playback_progress",
|
|
"name": "created_at"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 8,
|
|
"name": "updated_at!",
|
|
"type_info": "Timestamptz",
|
|
"origin": {
|
|
"Table": {
|
|
"table": "room_playback_progress",
|
|
"name": "updated_at"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"ordinal": 9,
|
|
"name": "version!",
|
|
"type_info": "Int8",
|
|
"origin": {
|
|
"Table": {
|
|
"table": "room_playback_progress",
|
|
"name": "version"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Int8",
|
|
"Int8",
|
|
"Int8",
|
|
"Jsonb",
|
|
"Text",
|
|
"Float8"
|
|
]
|
|
},
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
true,
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
false
|
|
]
|
|
},
|
|
"hash": "3f20d8ed19ac51eb2dd3bd702bd4e4e7a92fab0ad622954a8999d6f779e9203f"
|
|
}
|