create table
countries (id int8 primary key, name text);
insert into
countries (id, name)
values
(1, 'Afghanistan'),
(2, 'Albania'),
(3, 'Algeria');
const { data, error } = await supabase
.from('countries')
.select()
.csv()
{
"data": "id,name\n1,Afghanistan\n2,Albania\n3,Algeria",
"status": 200,
"statusText": "OK"
}
默认情况下,数据以 JSON 格式返回,但也可以选择返回 CSV 格式。