114 Commits

Author SHA1 Message Date
8c29d455ff codegen: fix defining the 'err' variable multiple times in foreign key checking test
All checks were successful
CI / build-docker (push) Successful in 12s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Successful in 41s
2026-03-19 15:43:31 -07:00
0f9a57dd85 codegen: fix more hardcoded "item" names in generated test file 2026-03-19 15:38:35 -07:00
11fed4b9c7 refactor: create CamelToPascal string helper 2026-03-19 15:35:18 -07:00
4e0836eb2e codegen: fix test generator hardcoding test string in multiple places
All checks were successful
CI / build-docker (push) Successful in 3s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Successful in 15s
2026-03-18 13:54:43 -07:00
f82929f6e2 style: remove unused fmtErrorf var
All checks were successful
CI / build-docker (push) Successful in 15s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Successful in 27s
2026-03-18 11:00:18 -07:00
1bc7f9111f codegen: implement "without rowid" tables
Some checks failed
CI / build-docker (push) Successful in 6s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Failing after 16s
2026-03-18 10:39:38 -07:00
c1150954e5 doc: update README
All checks were successful
CI / build-docker (push) Successful in 4s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Successful in 19s
2026-03-16 11:45:07 -07:00
fd90830340 doc: add README.md
All checks were successful
CI / build-docker (push) Successful in 11s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Successful in 3m33s
2026-03-16 11:38:36 -07:00
fcf266eb1d tests: add integration test for blob fields
All checks were successful
CI / build-docker (push) Successful in 6s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Successful in 2m24s
2026-03-03 17:55:50 -08:00
29787b5521 fix: make codegen not fail for "blob" columns
- was previously using "[]byte" as a single `ast.NewIdent`, which made comment+blank-line-insertion reparsing fail
2026-03-03 17:53:47 -08:00
e53546a7f5 lint: fix several lll, wrapcheck, and copy-paste errors
All checks were successful
CI / build-docker (push) Successful in 8s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Successful in 30s
2026-02-22 21:58:06 -08:00
c09a2fe1fb tmp: grafana stuff
Some checks failed
CI / build-docker (push) Successful in 6s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Failing after 2m38s
2026-02-22 21:45:05 -08:00
3e0a85fcfa codegen: add unique index lookup funcs 2026-02-22 21:45:05 -08:00
d6426bba14 codegen: add ability to insert comments and blank lines into the generated code
Some checks failed
CI / build-docker (push) Successful in 4s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Failing after 12s
2026-02-17 16:27:35 -08:00
8ab21edae9 codegen: move generated test helpers to new 'db_test.go' file
All checks were successful
CI / build-docker (push) Successful in 4s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Successful in 22s
2026-02-15 14:49:31 -08:00
ee1d0a5ed7 codegen (refactor): move foreign key failure check lambda function generator to a helper func
All checks were successful
CI / build-docker (push) Successful in 6s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Successful in 25s
2026-02-15 14:18:39 -08:00
93b589d1b2 codegen (refactor): compress whitespace
All checks were successful
CI / build-docker (push) Successful in 5s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Successful in 15s
2026-02-15 14:10:10 -08:00
b0d95c5948 codegen: skip generating ID type for "without rowid" tables 2026-02-15 14:10:10 -08:00
85d544152f schema: add PrimaryKeyColumns method to Table, useful for 'without rowid' tables 2026-02-15 14:10:06 -08:00
5cbb657666 codegen: add helpers
All checks were successful
CI / build-docker (push) Successful in 4s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Successful in 15s
2026-02-15 12:24:39 -08:00
b8a024a4b9 doc: remove completed auto-timestamp and fk check TODO items 2026-02-15 11:19:05 -08:00
4cba2af670 codegen: more AST style improvements
All checks were successful
CI / build-docker (push) Successful in 3s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Successful in 15s
2026-02-14 23:19:55 -08:00
04676461ff doc: add TODOs
All checks were successful
CI / build-docker (push) Successful in 5s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Successful in 26s
2026-02-14 22:56:43 -08:00
a36058fdbe codegen (refactor): clean up helpers a bit 2026-02-14 22:54:22 -08:00
f0c152cfe4 codegen: add auto-timestamp checking to generated tests 2026-02-14 22:17:59 -08:00
5973a2a4b7 codegen: implement auto-timestamps for created_at and updated_at
Some checks failed
CI / build-docker (push) Successful in 7s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Failing after 3m7s
2026-02-14 21:38:09 -08:00
75b7662c34 lint: fix lll and imports
All checks were successful
CI / build-docker (push) Successful in 3s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Successful in 15s
2026-02-07 22:29:57 -08:00
229f41e478 schema: add tests to show that migrations can be validated
Some checks failed
CI / build-docker (push) Successful in 4s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Failing after 9s
2026-02-07 18:12:53 -08:00
2e50736e67 schema: enable parsing a schema from an existing sqlx.DB instance
All checks were successful
CI / build-docker (push) Successful in 4s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Successful in 2m30s
2026-02-07 15:09:05 -08:00
1c56661560 codegen: add foreign key error check test
All checks were successful
CI / build-docker (push) Successful in 4s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Successful in 17s
2026-02-01 08:04:12 -08:00
3d357abb93 gitignore: ignore temporary / legacy files 2026-01-31 20:36:57 -08:00
wispem-wantex
a3da7573c1 codegen: slop out an AST generator for 'checkForeignKeyErrors' in 'SaveXyz()'
All checks were successful
CI / build-docker (push) Successful in 3s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Successful in 13s
2026-01-31 18:29:25 -08:00
wispem-wantex
b96ab19bc2 refactor: create helper functions in model generator
All checks were successful
CI / build-docker (push) Successful in 4s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Successful in 2m25s
2026-01-31 18:25:53 -08:00
wispem-wantex
cb8edd74c0 codegen: fix whitespace error in generated SQL 2026-01-29 10:54:58 -08:00
wispem-wantex
a0d0461f06 codegen: handle nullable foreign keys using 'ifnull' and add a test case for them
All checks were successful
CI / build-docker (push) Successful in 18s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Successful in 1m2s
2026-01-26 16:00:19 -08:00
wispem-wantex
e85a68e69d devcontainer: make it work on mac
All checks were successful
CI / build-docker (push) Successful in 5s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Successful in 2m17s
2026-01-26 14:54:59 -08:00
wispem-wantex
eee6714918 codegen: style fixes ('int64' -> 'int', 'SELECT' -> 'select') 2026-01-26 14:53:04 -08:00
wispem-wantex
c08f12e275 ci: add fts5 build tag for tests
All checks were successful
CI / build-docker (push) Successful in 2s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Successful in 11s
v0.0.1
2026-01-17 09:04:09 +09:00
wispem-wantex
0371fb4144 sqlite_lint: add support for FTS5 and virtual tables
Some checks failed
CI / build-docker (push) Successful in 5s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Failing after 6s
2026-01-17 09:00:24 +09:00
d70cbc1913 doc: add instructions to run sqlite_lint 2026-01-14 09:00:20 +09:00
ec19c3dcb5 doc: add entries for new 'rowid' related sqlite lint checks 2026-01-14 09:00:20 +09:00
2df2c634cd doc: add doc page for sqlite_lint 2026-01-14 08:22:28 +09:00
45c9e15dd3 doc: add some more notes to the main info doc file
All checks were successful
CI / build-docker (push) Successful in 15s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Successful in 40s
2026-01-10 17:39:08 -08:00
dc33bd84ff docs: add a TODO; also add IsSqlitePrimaryKeyError and change ForeignKey interface to '~int'
All checks were successful
CI / build-docker (push) Successful in 7s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Successful in 31s
2026-01-10 17:19:14 -08:00
2d29ce92ec generator: make scaffolded db schema pass new sqlite_lint checks
All checks were successful
CI / build-docker (push) Successful in 8s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Successful in 32s
2026-01-10 17:10:48 -08:00
a6cbbd3b39 tests: add test files for previous commit
Some checks failed
CI / build-docker (push) Successful in 7s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Failing after 31s
2026-01-10 17:06:28 -08:00
2ac9d8e775 sqlite_lint: add lint checks for rowid and without rowid
Some checks failed
CI / build-docker (push) Successful in 7s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Failing after 15s
2026-01-10 17:04:27 -08:00
560e461b00 lint: fixes
All checks were successful
CI / build-docker (push) Successful in 3s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Successful in 14s
2026-01-10 16:09:41 -08:00
5c1e1dcb6a generator: add GetAllXyzs() function
Some checks failed
CI / build-docker (push) Successful in 6s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Failing after 8s
2026-01-10 16:06:48 -08:00
a05cad5144 lint: fix lll
All checks were successful
CI / build-docker (push) Successful in 3s
CI / build-docker-bootstrap (push) Has been skipped
CI / release-test (push) Successful in 11s
2026-01-10 15:30:39 -08:00