cartodb Language Pack for OpenFn
npm install @openfn/language-cartodbLanguage Pack for sending messages using the
cartodb API.
View all the required and optional properties for state.configuration in the
official
configuration-schema
definition.
``js`
addRow(
'your_table',
fields(
field('name', 'taylor'),
field('lat', dataValue('lat')),
field('long', dataValue('long')),
field('mookie', dataValue('form.blaylock')),
field('description', dataValue('type_description')),
field('date', dataValue('SubmissionDate'))
)
);
`jsINSERT INTO untitled_table (name, the_geom) VALUES ('
sql(function (state) {
return (
+', ST_SetSRID(ST_Point(
dataValue('form.first_name')(state) +
+,
dataValue('lat')(state) +
+),4326))
dataValue('long')(state) +
`
);
});
Clone the adaptors monorepo. Follow the
Getting Started guide inside to get set up.
Run tests using pnpm run test or pnpm run test:watch
Build the project using pnpm build.
To just build the docs run pnpm build docs`