client server connection loop

This commit is contained in:
2026-08-06 19:17:03 +08:00
parent 5c5f4dbf01
commit eae86c73f7
13 changed files with 528 additions and 15 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ pub struct RemotesChanged {
pub remotes: Vec<Remote>,
}
async fn all(database: &AppDatabase) -> Result<Vec<Remote>, sqlx::Error> {
pub async fn all(database: &AppDatabase) -> Result<Vec<Remote>, sqlx::Error> {
sqlx::query_as::<_, Remote>(
"SELECT id, address, name, port FROM remotes \
ORDER BY COALESCE(name, address) COLLATE NOCASE, id",