For AI agents: the documentation index is at llms.txt. Guide pages have a markdown version at the same path with .md appended, before any query string or fragment.
.select() after insert() to return specific columns from the inserted row(s).The values to insert. Pass an dict to insert a single row or an list to insert multiple rows.
The property to use to get the count of rows returned.
Either 'minimal' or 'representation'. Defaults to 'representation'.
Make missing fields default to `null`. Otherwise, use the default value for the column. Only applies for bulk inserts.
response = (
supabase.table("planets")
.insert({"id": 1, "name": "Pluto"})
.execute()
)
try:
response = (
supabase.table("characters")
.insert([
{"id": 1, "name": "Frodo"},
{"id": 2, "name": "Sam"},
])
.execute()
)
return response
except Exception as exception:
return exception
response = (
supabase.table("planets")
.insert({"id": 1, "name": "Pluto"})
.select("id, name")
.execute()
)