0.4.15 • Published 12 months ago

@openfn/language-cartodb v0.4.15

Weekly downloads
-
License
LGPLv3
Repository
github
Last release
12 months ago

Language cartodb

Language Pack for sending messages using the cartodb API.

Documentation

Configuration

View all the required and optional properties for state.configuration in the official configuration-schema definition.

Examples

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'))
  )
);
sql(function (state) {
  return (
    `INSERT INTO untitled_table (name, the_geom) VALUES ('` +
    dataValue('form.first_name')(state) +
    `', ST_SetSRID(ST_Point(` +
    dataValue('lat')(state) +
    `, ` +
    dataValue('long')(state) +
    `),4326))`
  );
});

Development

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

0.4.9

1 year ago

0.4.8

1 year ago

0.4.0-next.0

2 years ago

0.4.10

1 year ago

0.4.15

12 months ago

0.4.13

12 months ago

0.4.14

12 months ago

0.4.11

1 year ago

0.4.12

1 year ago

0.3.0

2 years ago

0.4.5

1 year ago

0.4.4

2 years ago

0.4.7

1 year ago

0.4.6

1 year ago

0.4.1

2 years ago

0.4.0

2 years ago

0.2.2

2 years ago

0.4.3

2 years ago

0.4.2

2 years ago

0.2.1

3 years ago

0.1.4

3 years ago

0.1.2

3 years ago

0.1.3

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago