© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•3y ago
Mikey

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)
);
Spatial queries with MySQL | End Point Dev
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

MySQL Spatial Data Schema
Drizzle TeamDTDrizzle Team / help
17mo ago
MySql NOW() in Drizzle
Drizzle TeamDTDrizzle Team / help
3y ago
Delete using pg query in drizzle
Drizzle TeamDTDrizzle Team / help
3y ago