james162861
james162861
Explore posts from servers
DTDrizzle Team
Created by james162861 on 9/28/2024 in #help
MySQL Spatial Data Schema
Answered it: const POINT = customType<{ data: string; notNull: false }>({ dataType() { return "point"; }, toDriver(value: string): string { return POINT(${value}); }, fromDriver(value: unknown) { return (value as string).replace(/[^0-9.,]/g, ""); }, });
2 replies