Mikey
Explore posts from serversTRPC Nextjs App Router API Base URL
Is there any issues with me placing trpc route handler in the root of my api folder? I don't really like having the /trpc in front of my api calls. I want it abstracted. Also, is it possible to use slashes for the url instead of camel case? I want for example do: /api/contact/create
2 replies
DTDrizzle Team
•Created by Mikey on 7/5/2023 in #help
Spatial Query in Drizzle using MySQL
I'm not able to find an example of how to create a Spatial Index as explained in this tutorial.
https://www.endpointdev.com/blog/2021/03/spatial-queries-with-mysql/
Can I please get some help with how to do the following in Drizzle ORM?
CREATE TABLE restaurants (
name VARCHAR(100),
location GEOMETRY NOT NULL,
SPATIAL INDEX(location)
);
1 replies