๐Ÿ“ฆ payloadcms / drizzle-test

โ˜… 7 stars โ‘‚ 0 forks ๐Ÿ‘ 7 watching
๐Ÿ“ฅ Clone https://github.com/payloadcms/drizzle-test.git
HTTPS git clone https://github.com/payloadcms/drizzle-test.git
SSH git clone git@github.com:payloadcms/drizzle-test.git
CLI gh repo clone payloadcms/drizzle-test
James James chore: cleans up find pattern 283113d 2 years ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“ .vscode
๐Ÿ“ sqlite
๐Ÿ“„ .gitignore
๐Ÿ“„ .prettierrc.json
๐Ÿ“„ README.md
๐Ÿ“„ README.md

Payload + Drizzle Data Structure PoC

This repository showcases the work that the Payload team is performing in regards to how to map the Payload field schema to a relational database structure. It's built on top of Drizzle ORM.

The goals for this repository are as follows:

  • Demonstrate how to map Payload fields and features over to a relational database structure
  • Insert data of the correct shape into a database
  • Retrieve the data that Payload APIs require in a performant fashion
  • Transform the raw response from the database into the shape that Payload expects

SQLite

We've started with the "lowest common denominator" being SQLite, but once we have alignment on how to proceed, we will move on to Postgres.

Here is the code for our SQLite proof of concept.