compose.yaml runs playlistd with a Postgres database. Settings come from .env (see .env.example), and Postgres must be healthy before playlistd starts. The Dockerfile builds the web UI with Node and the server with Rust, then copies both into a Debian slim image that runs as an unprivileged user. It also installs the latest yt-dlp (with its YouTube scripts) and Deno, the JavaScript runtime yt-dlp needs for YouTube. playlistd's port is only published on 127.0.0.1 by default, since it has no login. The image can't reach a database during the build, so the SQL query data from `cargo sqlx prepare` is now committed in .sqlx/. Builds with DATABASE_URL set still check queries against that database. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018opPJMJjLWr4RqdG6vuK6p
89 lines
1.7 KiB
JSON
89 lines
1.7 KiB
JSON
{
|
|
"db_name": "PostgreSQL",
|
|
"query": "\n SELECT * FROM \"mix_suggestion\"\n WHERE rule_id = $1 AND status = 'liked'\n ORDER BY created_at DESC\n ",
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"ordinal": 0,
|
|
"name": "id",
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"ordinal": 1,
|
|
"name": "rule_id",
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"ordinal": 2,
|
|
"name": "mix_id",
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"ordinal": 3,
|
|
"name": "recording_mbid",
|
|
"type_info": "Varchar"
|
|
},
|
|
{
|
|
"ordinal": 4,
|
|
"name": "title",
|
|
"type_info": "Varchar"
|
|
},
|
|
{
|
|
"ordinal": 5,
|
|
"name": "artist",
|
|
"type_info": "Varchar"
|
|
},
|
|
{
|
|
"ordinal": 6,
|
|
"name": "release",
|
|
"type_info": "Varchar"
|
|
},
|
|
{
|
|
"ordinal": 7,
|
|
"name": "cover_url",
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"ordinal": 8,
|
|
"name": "score",
|
|
"type_info": "Float8"
|
|
},
|
|
{
|
|
"ordinal": 9,
|
|
"name": "status",
|
|
"type_info": "Varchar"
|
|
},
|
|
{
|
|
"ordinal": 10,
|
|
"name": "youtube_id",
|
|
"type_info": "Varchar"
|
|
},
|
|
{
|
|
"ordinal": 11,
|
|
"name": "created_at",
|
|
"type_info": "Timestamptz"
|
|
}
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
},
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
true,
|
|
false,
|
|
false,
|
|
false,
|
|
true,
|
|
true,
|
|
false,
|
|
false,
|
|
true,
|
|
false
|
|
]
|
|
},
|
|
"hash": "d46de753581651896a2b6e9385d3821d22c323ca30f73f37ca845e95472fcc76"
|
|
}
|