Snacktime
Snacktime is a wrapper for the Launched LA internal database that will replicate into Snowflake. It is an enhanced place to store event-driven data.
Usage
There are 2 main functions: recordAction
and getActions
. Refer to the test file for exact usage.
Adding New Types
Refer to this commit for reference.
- Add the new type in
src/types.ts
. - Add a test in
src/index.test.ts
. - Make sure
npm t
works. - Make sure
npm run build
works.
Testing
- Have Docker installed.
- Run
npm t -- --watch
to run the tests and watch.