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.
struct Instrument: Encodable {
let id: Int
let name: String
}
let instrument = Instrument(id: 1, name: "ukelele")
try await supabase
.from("instruments")
.insert(instrument)
.execute()
struct Instrument: Codable {
let id: Int
let name: String
}
let instrument: Instrument = try await supabase
.from("instruments")
.insert(Instrument(id: 1, name: "banjo"))
.select()
// specify you want a single value returned, otherwise it returns a list.
.single()
.execute()
.value
struct Instrument: Encodable {
let id: Int
let name: String
}
let instruments = [
Instrument(id: 1, name: "xylophone"),
Instrument(id: 1, name: "tuba"),
]
try await supabase
.from("instruments")
.insert(instruments)
.execute()