You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
D1's exec() treats newlines as statement separators, causing multiline CREATE TABLE statements to be truncated after the first line and return "incomplete input: SQLITE_ERROR" on every request. Fix: switch run_migrations() in D1Repository to use prepare(sql).run() instead of exec(sql), which treats the full string as a single statement. Also moves db and handlers modules from src/bin/api/ to src/ (library modules), adds justfile with build/deploy/migrate recipes, adds migrations/schema.sql for direct wrangler d1 execute usage, and adds wrangler.toml for worker deployment configuration. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
3 months ago | |
|---|---|---|
| .. | ||
| bin | 3 months ago | |
| db | 3 months ago | |
| handlers | 3 months ago | |
| lib.rs | 3 months ago | |