This website requires JavaScript.
12fc338947
doc: add TODO items
master
~wispem-wantex
2026-09-19 21:36:31 -07:00
c70732d6af
lint: enable custom linters from go-lint project
~wispem-wantex
2026-09-19 21:36:31 -07:00
ef71828ce2
lint: convert snake to camel case
~wispem-wantex
2026-10-24 18:56:45 -07:00
f8d79761f4
housekeeping: clean up lint config
~wispem-wantex
2026-09-19 21:36:31 -07:00
de11a0214b
generic: add MutexMap
v0.0.7
~wispem-wantex
2026-09-19 21:36:31 -07:00
936df98cc4
db: add VSC
~wispem-wantex
2026-09-19 21:36:31 -07:00
56b264fcb3
devcontainer: bump golangci-lint version from 2.0.2 => 2.14.0
~wispem-wantex
2026-09-19 21:36:31 -07:00
99b57c88b0
ops: bump gas container Alpine from 3.22 => 3.24
~wispem-wantex
2026-09-19 21:36:31 -07:00
6cf0b66dd5
codegen: CreateUpdateDelete test no longer creates an "Update" block if there's no updateable fields
~wispem-wantex
2026-09-19 21:36:31 -07:00
f98f8416e8
codegen: test fixture factories now use randomness to generate unique column values
v0.0.6
~wispem-wantex
2026-09-19 21:36:31 -07:00
1592c7d1fc
codegen: MakeXyz() fixture factories now take args for required foreign key objects
~wispem-wantex
2026-09-19 21:36:31 -07:00
bd5ad7e77b
lint: fix lll
v0.0.5
v0.0.4
~wispem-wantex
2026-09-21 17:57:41 -07:00
171da4139b
cmd: add a 'version' subcommand and flag to show the version
~wispem-wantex
2026-09-19 21:36:31 -07:00
741709623b
doc: update TODOs, general housekeeping
~wispem-wantex
2026-09-19 21:36:31 -07:00
b064948d24
codegen: add generator for soft-deletion
~wispem-wantex
2026-09-19 21:36:31 -07:00
9d4a1eab10
fix (codegen): don't duplicate the primary-key getter for 'without rowid' tables
~wispem-wantex
2026-09-19 21:36:31 -07:00
40bc0db036
refactor: make migration process more intelligent, add test coverage
~wispem-wantex
2026-09-19 21:36:31 -07:00
ff7f0a57c8
db: make migrations a struct instead of a plain string
wispem-wantex
2026-09-19 21:35:27 -07:00
d2b3a8173f
textutils: move colors to textutils
~wispem-wantex
2026-02-14 18:33:41 -08:00
ba89f0b818
codegen: make generated godoc more relevant for without-rowid tables
~wispem-wantex
2026-02-14 18:33:41 -08:00
83a7087a3b
TMP: codetables
wispem/codetables
wispem-wantex
2026-03-19 23:36:51 -07:00
4f3865deaa
codegen: generate getters for compound indexes
~wispem-wantex
2026-09-15 18:21:22 -07:00
3f2db59b3d
refactor (codegen): reduce redundancy, make 'get item(s) by blah' generators more general
~wispem-wantex
2026-09-15 18:11:17 -07:00
89b2fd7c3c
codegen: generate getters for non-unique indexes
~wispem-wantex
2026-09-15 17:48:39 -07:00
a1b06a3ef8
codegen: use must.Be helper in Save function
~wispem-wantex
2026-09-08 18:18:31 -07:00
49d2a7748f
codegen: make generated tests support 'without rowid' tables
~wispem-wantex
2026-09-08 17:19:57 -07:00
ae036d15f2
codegen: make test fixture factory function intelligent about what fields and values it assigns
~wispem-wantex
2026-02-14 18:33:41 -08:00
b33127db6c
codegen: make generated code use 'must' instead of 'flowutils'
~wispem-wantex
2026-09-08 15:31:14 -07:00
f542f45630
refactor: migrate 'flowutils' to 'must' helpers
~wispem-wantex
2026-09-08 15:15:28 -07:00
cf989f7433
codegen: add error printout for when codegen re-parse fails to facilitate debugging
~wispem-wantex
2026-02-14 18:33:41 -08:00
a101c7531b
codegen: make modelSQLFields const use camel case instead of lowercase
v0.0.3
~wispem-wantex
2026-02-14 18:33:41 -08:00
9c31266f59
schema: split 'column', 'index' and 'schema' into separate files from 'table'
wispem-wantex
2026-03-15 15:45:16 -07:00
616304c7dd
ci: add support for manually triggering the build
~wispem-wantex
2026-02-14 18:33:41 -08:00
17fc8a68f6
codegen: wrap foreign key checks for nullable FKs in "if a.Val != 0 { ... }"
v0.0.2
~wispem-wantex
2026-02-14 18:33:41 -08:00
d572745613
codegen: don't skip created_at auto-timestamp for 'without rowid' tables
~wispem-wantex
2026-07-12 13:19:20 -07:00
9bfb31798c
codegen: don't auto-timestamp overwrite provided timestamps if there are ones
~wispem-wantex
2026-02-14 18:33:41 -08:00
eafeb658bd
codegen: fix invalid SQL query being generated for GetItemBy with multiple params
~wispem-wantex
2026-02-14 18:33:41 -08:00
dbf14e23b6
codegen: fix fk checking lambda producing non-lint-passing code
~wispem-wantex
2026-02-14 18:33:41 -08:00
ad1782c73d
codegen: use "require.NoError(...)" when saving objects that return errors
~wispem-wantex
2026-02-14 18:33:41 -08:00
ccd7e32cbf
codegen: test file now uses deep.Equal instead of comparing one field
~wispem-wantex
2026-02-14 18:33:41 -08:00
ed4ade1956
codegen: fix escaped double-quote inside test strings
~wispem-wantex
2026-02-14 18:33:41 -08:00
9a11f3986c
codegen: improve the "TestFkChecking" generated function
~wispem-wantex
2026-02-14 18:33:41 -08:00
8c29d455ff
codegen: fix defining the 'err' variable multiple times in foreign key checking test
~wispem-wantex
2026-02-14 18:33:41 -08:00
0f9a57dd85
codegen: fix more hardcoded "item" names in generated test file
~wispem-wantex
2026-02-14 18:33:41 -08:00
11fed4b9c7
refactor: create CamelToPascal string helper
~wispem-wantex
2026-02-14 18:33:41 -08:00
4e0836eb2e
codegen: fix test generator hardcoding test string in multiple places
~wispem-wantex
2026-02-14 18:33:41 -08:00
f82929f6e2
style: remove unused fmtErrorf var
~wispem-wantex
2026-02-14 18:33:41 -08:00
1bc7f9111f
codegen: implement "without rowid" tables
~wispem-wantex
2026-02-14 18:33:41 -08:00
c1150954e5
doc: update README
~wispem-wantex
2026-02-14 18:33:41 -08:00
fd90830340
doc: add README.md
~wispem-wantex
2026-02-14 18:33:41 -08:00
fcf266eb1d
tests: add integration test for blob fields
~wispem-wantex
2026-02-14 18:33:41 -08:00
29787b5521
fix: make codegen not fail for "blob" columns
~wispem-wantex
2026-02-14 18:33:41 -08:00
e53546a7f5
lint: fix several lll, wrapcheck, and copy-paste errors
wispem-wantex
2026-02-22 21:56:55 -08:00
c09a2fe1fb
tmp: grafana stuff
wispem-wantex
2026-02-19 21:40:02 -08:00
3e0a85fcfa
codegen: add unique index lookup funcs
wispem-wantex
2026-02-19 21:40:02 -08:00
d6426bba14
codegen: add ability to insert comments and blank lines into the generated code
wispem-wantex
2026-02-15 14:54:22 -08:00
8ab21edae9
codegen: move generated test helpers to new 'db_test.go' file
wispem-wantex
2026-02-15 14:48:49 -08:00
ee1d0a5ed7
codegen (refactor): move foreign key failure check lambda function generator to a helper func
wispem-wantex
2026-02-15 20:48:50 +00:00
93b589d1b2
codegen (refactor): compress whitespace
wispem-wantex
2026-02-15 20:48:02 +00:00
b0d95c5948
codegen: skip generating ID type for "without rowid" tables
wispem-wantex
2026-02-15 20:49:13 +00:00
85d544152f
schema: add PrimaryKeyColumns method to Table, useful for 'without rowid' tables
wispem-wantex
2026-02-15 20:49:35 +00:00
5cbb657666
codegen: add helpers
wispem-wantex
2026-01-31 20:35:03 -08:00
b8a024a4b9
doc: remove completed auto-timestamp and fk check TODO items
wispem-wantex
2026-01-31 20:35:03 -08:00
4cba2af670
codegen: more AST style improvements
wispem-wantex
2026-01-31 20:35:03 -08:00
04676461ff
doc: add TODOs
wispem-wantex
2026-01-31 20:35:03 -08:00
a36058fdbe
codegen (refactor): clean up helpers a bit
wispem-wantex
2026-01-31 20:35:03 -08:00
f0c152cfe4
codegen: add auto-timestamp checking to generated tests
wispem-wantex
2026-01-31 20:35:03 -08:00
5973a2a4b7
codegen: implement auto-timestamps for created_at and updated_at
wispem-wantex
2026-01-31 20:35:03 -08:00
75b7662c34
lint: fix lll and imports
wispem-wantex
2026-01-31 20:35:03 -08:00
229f41e478
schema: add tests to show that migrations can be validated
wispem-wantex
2026-01-31 20:35:03 -08:00
2e50736e67
schema: enable parsing a schema from an existing sqlx.DB instance
wispem-wantex
2026-01-31 20:35:03 -08:00
1c56661560
codegen: add foreign key error check test
wispem-wantex
2026-01-31 20:35:03 -08:00
3d357abb93
gitignore: ignore temporary / legacy files
wispem-wantex
2026-01-31 20:35:03 -08:00
a3da7573c1
codegen: slop out an AST generator for 'checkForeignKeyErrors' in 'SaveXyz()'
wispem-wantex
2026-01-31 18:29:25 -08:00
b96ab19bc2
refactor: create helper functions in model generator
wispem-wantex
2026-01-31 18:25:53 -08:00
cb8edd74c0
codegen: fix whitespace error in generated SQL
wispem-wantex
2026-01-29 10:54:58 -08:00
a0d0461f06
codegen: handle nullable foreign keys using 'ifnull' and add a test case for them
wispem-wantex
2026-01-26 16:00:19 -08:00
e85a68e69d
devcontainer: make it work on mac
wispem-wantex
2026-01-26 14:54:59 -08:00
eee6714918
codegen: style fixes ('int64' -> 'int', 'SELECT' -> 'select')
wispem-wantex
2026-01-26 14:53:04 -08:00
c08f12e275
ci: add fts5 build tag for tests
v0.0.1
wispem-wantex
2026-01-17 09:04:09 +09:00
0371fb4144
sqlite_lint: add support for FTS5 and virtual tables
wispem-wantex
2026-01-17 09:00:18 +09:00
d70cbc1913
doc: add instructions to run sqlite_lint
~wispem-wantex
2026-01-14 08:33:59 +09:00
ec19c3dcb5
doc: add entries for new 'rowid' related sqlite lint checks
~wispem-wantex
2026-01-14 08:33:59 +09:00
2df2c634cd
doc: add doc page for sqlite_lint
~wispem-wantex
2026-01-14 07:48:44 +09:00
45c9e15dd3
doc: add some more notes to the main info doc file
wispem-wantex
2026-01-10 17:39:08 -08:00
dc33bd84ff
docs: add a TODO; also add IsSqlitePrimaryKeyError and change ForeignKey interface to '~int'
wispem-wantex
2026-01-10 17:19:14 -08:00
2d29ce92ec
generator: make scaffolded db schema pass new sqlite_lint checks
wispem-wantex
2026-01-10 17:10:48 -08:00
a6cbbd3b39
tests: add test files for previous commit
wispem-wantex
2026-01-10 17:06:28 -08:00
2ac9d8e775
sqlite_lint: add lint checks for rowid and without rowid
wispem-wantex
2026-01-10 17:04:20 -08:00
560e461b00
lint: fixes
wispem-wantex
2026-01-10 16:09:41 -08:00
5c1e1dcb6a
generator: add GetAllXyzs() function
wispem-wantex
2026-01-10 16:06:48 -08:00
a05cad5144
lint: fix lll
wispem-wantex
2026-01-10 15:30:39 -08:00
e6a8175644
generator: use 'Must' flow helper in generated query funcs
wispem-wantex
2026-01-10 15:28:01 -08:00
195c8f980e
ci: make container build handle being built as 'root' correctly
wispem-wantex
2026-01-10 14:05:54 -08:00
8b674a0dea
ci: add sudo to bootstrap build container, in accordance with previous commit
wispem-wantex
2026-01-10 13:52:54 -08:00
13a6255553
ci: use devcontainer build script in CI. Also re-tag it as 'gas' instead of 'gas/ci' (which should be redundant)
wispem-wantex
2026-01-10 13:51:26 -08:00
e0e6046afe
devcontainer: add doc, user to match host machine, and scripts to build/start
wispem-wantex
2026-01-10 13:39:41 -08:00
381d648be0
doc: remove some completed TODO items
wispem-wantex
2025-12-12 23:19:44 -08:00
ded07eb182
model generator: add the 'const xyzSQLFields = ...' decl, use it in the select query for GetXyzByID
wispem-wantex
2025-12-12 23:19:14 -08:00
a32bf873c9
refactor: create helper function for computing a table's generated type-name
wispem-wantex
2025-12-12 22:37:29 -08:00