How to prefix planetscale tables for dev dbs using drizzle?
I remember Theo talking about a clever workaround for the planetscale db/project limit by making specially prefixed table names in dev mode. In order to "emulate" a dev db you could just make extra tables and conditionally access them based on the build environment. I loosely remember drizzle being mentioned - anyone remember this or can point me in the right direction? I was hoping there was a more clever way to do this than doubling my code with two adjacent conditional queries , and rather something I could handle with smart configuration.
3 Replies
you have to do both
Thank you so much!