TimMikeladze / next-upload

🗃️ Turn-key solution for signed & secure file-uploads to an S3 compliant storage service such as R2, AWS, or Minio. Built for Next.js. Generates signed URLs for uploading files directly to your storage service and optionally integrates with a database to store additional metadata about your files.
MIT License
99 stars 5 forks source link

Drizzle MySQL Asset Store #5

Open TimMikeladze opened 1 year ago

TimMikeladze commented 1 year ago

There is a start of an implementation on the mysql branch.

momi15075 commented 1 year ago

Details?

TimMikeladze commented 1 year ago

Details?

To implement an asset store for MySQL using Drizzle one can use https://github.com/TimMikeladze/next-upload/tree/master/src/store/drizzle/pg as a starting point for implementation.

The logic will remain quite similar, with the major differences being in the column types for MySQL as opposed to Pg.

Note: this MySQL implementation should work out of the box with planetscale according to the drizzle docs .