https://github.com/payloadcms/drizzle-test
https://github.com/payloadcms/drizzle-test
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/payloadcms/drizzle-test
- Owner: payloadcms
- Created: 2023-07-07T19:58:12.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-07-29T01:33:16.000Z (almost 2 years ago)
- Last Synced: 2025-04-01T22:24:02.953Z (3 months ago)
- Language: TypeScript
- Size: 383 KB
- Stars: 6
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
1. Demonstrate how to map Payload fields and features over to a relational database structure
1. Insert data of the correct shape into a database
1. Retrieve the data that Payload APIs require in a performant fashion
1. 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](https://github.com/payloadcms/drizzle-test/tree/master/sqlite).