Files
2025-10-09 21:04:50 +13:00

584 B

package main

import ( "fmt" "github.com/appwrite/sdk-for-go/client" "github.com/appwrite/sdk-for-go/tablesdb" )

client := client.New( client.WithEndpoint("https://.cloud.appwrite.io/v1") client.WithProject("<YOUR_PROJECT_ID>") client.WithKey("<YOUR_API_KEY>") )

service := tablesdb.New(client)

response, error := service.UpdateRows( "<DATABASE_ID>", "<TABLE_ID>", tablesdb.WithUpdateRowsData(map[string]interface{}{}), tablesdb.WithUpdateRowsQueries([]interface{}{}), tablesdb.WithUpdateRowsTransactionId("<TRANSACTION_ID>"), )