db = {
const gentoo = {
url : () => "https://portal.edirepository.org/nis/dataviewer?packageid=knb-lter-pal.220.7&entityid=e03b43c924f226486f2f0ab6709d2381",
mimeType: 'text/csv',
name: 'gentoo'
}
const adelie = {
url : () => "https://portal.edirepository.org/nis/dataviewer?packageid=knb-lter-pal.219.5&entityid=002f3893385f710df69eeebe893144ff",
mimeType: 'text/csv',
name: 'adelie'
}
const chinstrap = {
url : () => "https://portal.edirepository.org/nis/dataviewer?packageid=knb-lter-pal.221.8&entityid=fe853aa8f7a59aa84cdd3197619ef462",
mimeType: 'text/csv',
name: 'chinstrap'
}
return DuckDBClient.of({
gentoo: {file: gentoo},
adelie: {file: adelie},
chinstrap: {file: chinstrap}
})
const myCSVFiles = {
gentoo : "https://portal.edirepository.org/nis/dataviewer?packageid=knb-lter-pal.220.7&entityid=e03b43c924f226486f2f0ab6709d2381",
adelie: "https://portal.edirepository.org/nis/dataviewer?packageid=knb-lter-pal.219.5&entityid=002f3893385f710df69eeebe893144ff",
chinstrap: "https://portal.edirepository.org/nis/dataviewer?packageid=knb-lter-pal.221.8&entityid=fe853aa8f7a59aa84cdd3197619ef462"
}
const myCSVFilesForDuckDB = Object.entries(myCSVFiles).map(d => ({ url: () => d[1], mimeType: 'text/csv', name: d[0] }))
.map(d => [d.name, {file : d}])
return DuckDBClient.of(
Object.fromEntries(myCSVFilesForDuckDB)
)
}