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.
Elijah Voigt c64b6bf56e fix(quotesdb): fix D1 exec() newline truncation in migrations, add justfile and migrate command
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 fix(quotesdb): fix report submit button always disabled, add auth code hint 3 months ago
db fix(quotesdb): fix D1 exec() newline truncation in migrations, add justfile and migrate command 3 months ago
handlers fix(quotesdb): fix D1 exec() newline truncation in migrations, add justfile and migrate command 3 months ago
lib.rs feat(quotesdb): add hidden flag to quotes 3 months ago