mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
532 B
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 )