twonly-app/rust/.sqlx/query-1eb6b6e8e4ed43f43c3e6c570ffad96638f7c02d4baa4bdea006ea2a439ec24f.json
2026-09-09 20:26:26 +02:00

146 lines
3.9 KiB
JSON

{
"db_name": "SQLite",
"query": "SELECT app_id AS \"app_id!: String\", version AS \"version!: i64\",\n name AS \"name!: String\",\n pro_only AS \"pro_only!: bool\",\n one_time AS \"one_time!: bool\",\n (SELECT instance_id FROM webxdc_instances\n WHERE webxdc_instances.group_id = ?\n AND webxdc_instances.app_id = webxdc_apps.app_id\n ORDER BY created_at ASC LIMIT 1) AS \"instance_id: String\",\n name_translations AS \"name_translations!: String\",\n source_code_url AS \"source_code_url: String\",\n description AS \"description!: String\",\n icon AS \"icon: Vec<u8>\", bundle_bytes AS \"bundle_bytes!: i64\"\n FROM webxdc_apps\n WHERE published = 1\n AND version = (SELECT MAX(version) FROM webxdc_apps AS newer\n WHERE newer.app_id = webxdc_apps.app_id AND newer.published = 1)\n ORDER BY sort_order ASC, name ASC, app_id ASC",
"describe": {
"columns": [
{
"name": "app_id!: String",
"ordinal": 0,
"type_info": "Text",
"origin": {
"Table": {
"table": "webxdc_apps",
"name": "app_id"
}
}
},
{
"name": "version!: i64",
"ordinal": 1,
"type_info": "Integer",
"origin": {
"Table": {
"table": "webxdc_apps",
"name": "version"
}
}
},
{
"name": "name!: String",
"ordinal": 2,
"type_info": "Text",
"origin": {
"Table": {
"table": "webxdc_apps",
"name": "name"
}
}
},
{
"name": "pro_only!: bool",
"ordinal": 3,
"type_info": "Bool",
"origin": {
"Table": {
"table": "webxdc_apps",
"name": "pro_only"
}
}
},
{
"name": "one_time!: bool",
"ordinal": 4,
"type_info": "Bool",
"origin": {
"Table": {
"table": "webxdc_apps",
"name": "one_time"
}
}
},
{
"name": "instance_id: String",
"ordinal": 5,
"type_info": "Text",
"origin": {
"Table": {
"table": "webxdc_instances",
"name": "instance_id"
}
}
},
{
"name": "name_translations!: String",
"ordinal": 6,
"type_info": "Text",
"origin": {
"Table": {
"table": "webxdc_apps",
"name": "name_translations"
}
}
},
{
"name": "source_code_url: String",
"ordinal": 7,
"type_info": "Text",
"origin": {
"Table": {
"table": "webxdc_apps",
"name": "source_code_url"
}
}
},
{
"name": "description!: String",
"ordinal": 8,
"type_info": "Text",
"origin": {
"Table": {
"table": "webxdc_apps",
"name": "description"
}
}
},
{
"name": "icon: Vec<u8>",
"ordinal": 9,
"type_info": "Blob",
"origin": {
"Table": {
"table": "webxdc_apps",
"name": "icon"
}
}
},
{
"name": "bundle_bytes!: i64",
"ordinal": 10,
"type_info": "Integer",
"origin": {
"Table": {
"table": "webxdc_apps",
"name": "bundle_bytes"
}
}
}
],
"parameters": {
"Right": 1
},
"nullable": [
false,
false,
false,
false,
false,
true,
false,
true,
false,
true,
false
]
},
"hash": "1eb6b6e8e4ed43f43c3e6c570ffad96638f7c02d4baa4bdea006ea2a439ec24f"
}