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("countries")
.insert(\{"id": 1, "name": "Denmark"\})
.execute()
)
try:
response = supabase.table("countries")
.insert([
\{ "id": 1, "name": "Nepal" \},
\{ "id": 1, "name": "Vietnam" \},
])
.execute()
return response
except Exception as exception:
return exception