0.2.0 • Published 1 month ago

@last-rev/contentful-reports v0.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 month ago

⚠️ Reports are run against an in-memory sqlite3 database that is populated from the synced entries/assets and content types from Contentful

Requirements

You must first have a file location of an existing contentful export, using the contentful-cli Run the following steps to generate the export:

contentful login
contentful space export --space-id {spaceId} --environment-id {envId} --export-dir {exportDir} --inlcude-drafts

Adding a report

The file sql/db.schema has all the data we can build reports from. Each report lives on a separate SQL query under sql/{reportName}.sql. In we want to capture more data from Contentful to build new reports, we can add new tables or add columns to the already existing ones and then create a new report file with the query for it.

0.2.0

1 month ago

0.1.3

11 months ago

0.1.2

1 year ago

0.1.1

1 year ago