SQL validation
Only runtime CRUD-style operations are allowed:| Allowed | Blocked |
|---|---|
SELECT | CREATE TABLE |
INSERT | ALTER TABLE |
UPDATE | DROP TABLE |
DELETE | CREATE INDEX |
REPLACE | Other DDL |
WITH (CTEs) |
Schema changes do not happen through runtime SQL. Update
server/src/defs/db_schema.ts, then use edgespark db generate and edgespark db migrate.Authentication enforcement
Before your code runs, EdgeSpark evaluates the route prefix and the session state. Protected routes receive a validauth.user or the request is rejected.
See path-based auth for the route rules.
Storage isolation
Storage access is scoped to the current project and the buckets you declared inserver/src/defs/storage_schema.ts. Projects cannot read each other’s files.
For large uploads and downloads, use presigned URLs and review platform limits.
Batch queries
Usedb.batch() for atomic multi-step operations:
server/src/index.ts
See also
Path-based auth
How URL path conventions control authentication for every route.
Platform limits
Database, storage, and runtime limits that shape safe app behavior.