Files
appwrite/docs/examples/1.8.x/server-go/examples/tablesdb/update-float-column.md

582 B


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

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

service := tablesdb.New(client)

response, error := service.UpdateFloatColumn(
    "<DATABASE_ID>",
    "<TABLE_ID>",
    "",
    false,
    0,
    tablesdb.WithUpdateFloatColumnMin(0),
    tablesdb.WithUpdateFloatColumnMax(0),
    tablesdb.WithUpdateFloatColumnNewKey(""),
)