Files
2025-10-27 17:41:33 +05:30

532 B

import Appwrite

let client = Client() .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint .setProject("<YOUR_PROJECT_ID>") // Your project ID .setSession("") // The user session to authenticate with

let tablesDB = TablesDB(client)

let row = try await tablesDB.upsertRow( databaseId: "<DATABASE_ID>", tableId: "<TABLE_ID>", rowId: "<ROW_ID>", data: [:], // optional permissions: [Permission.read(Role.any())], // optional transactionId: "<TRANSACTION_ID>" // optional )