db0 icon indicating copy to clipboard operation
db0 copied to clipboard

feat: add planetscale support

Open Gerbuuun opened this issue 11 months ago โ€ข 0 comments

๐Ÿ”— Linked issue

#32

โ“ Type of change

  • [x] ๐Ÿ“– Documentation (updates to the documentation, readme, or JSdoc annotations)
  • [ ] ๐Ÿž Bug fix (a non-breaking change that fixes an issue)
  • [ ] ๐Ÿ‘Œ Enhancement (improving an existing functionality like performance)
  • [x] โœจ New feature (a non-breaking change that adds functionality)
  • [ ] ๐Ÿงน Chore (updates to the build process or auxiliary tools and libraries)
  • [ ] โš ๏ธ Breaking change (fix or feature that would cause existing functionality to change)

๐Ÿ“š Description

I have added a connector for @planetscale/database. It is mostly a copy of the Postgresql connector with some small changes.

Due to differences in SQL dialects I added a dialect option to the testConnector function. Using a switch statement, the correct query is used for the different dialects. Maybe there are better other options (suggestions)?

๐Ÿ“ Checklist

  • [x] I have linked an issue or discussion.
  • [x] I have updated the documentation accordingly.

Gerbuuun avatar Mar 05 '24 14:03 Gerbuuun