aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* revert the addition of oblast.{SelectTwo,SelectThree}HEADmainStefan Majewsky3 days2-27/+6
| | | | | | | | | | | It's good that I slept on this. These names are inconsistent with the existing pairing of oblast.Select and oblast.SelectOne. If anything, they should be called oblast.SelectOne{Pair,Triple}, which reveals the concept to be as ugly as it really is. At this point, I'd rather use oblast.TupleSelectOne consistently, despite is slight ugliness from forcing either a separate type declaration or newlines in the type argument.
* gsql, oblast: add more small helper functionsStefan Majewsky3 days4-10/+65
|
* assert: note for laterStefan Majewsky7 days1-0/+2
|
* v1.21.0v1.21.0Stefan Majewsky9 days1-1/+1
|
* oblast: add type RuntimeIndex from go.xyrillian.de/oblastStefan Majewsky9 days4-2/+147
|
* v1.20.0v1.20.0Stefan Majewsky9 days1-1/+1
|
* replace execQuery() with new gsql.Exec() helperStefan Majewsky9 days9-50/+30
|
* replace query() with oblast.SelectOne() or oblast.TupleSelectOne()Stefan Majewsky9 days4-33/+12
|
* replace selectOneValue() with oblast.SelectOne()Stefan Majewsky9 days6-36/+11
|
* replace selectSeveralValues() with oblast.Select()Stefan Majewsky9 days2-21/+2
|
* pathrouter: add TODOs for APIs that I want to addStefan Majewsky2026-10-182-1/+4
|
* add option.Option.Map()Stefan Majewsky2026-10-186-12/+22
|
* replace all json.Marshaler{ => To} and json.Unmarshaler{ => From}Stefan Majewsky2026-10-126-44/+57
|
* jsonmatch: make type Pointer a synonym for jsonmatch.PointerStefan Majewsky2026-10-123-5/+7
|
* bump Go version requirement to 1.27Stefan Majewsky2026-10-126-6/+14
|
* v1.19.0v1.19.0Stefan Majewsky2026-10-061-1/+1
|
* pathrouter: add ElementsStefan Majewsky2026-10-063-9/+53
|
* pathrouter: add CatchAllVariableIf, VariableIfStefan Majewsky2026-10-064-8/+65
|
* v1.18.0v1.18.0Stefan Majewsky2026-10-051-1/+1
|
* pathrouter: remove type Context from public interfaceStefan Majewsky2026-10-0511-39/+96
|
* v1.17.0v1.17.0Stefan Majewsky2026-10-021-1/+1
|
* pathrouter: replace `vars` by new type ContextStefan Majewsky2026-10-0211-29/+62
| | | | | | | | This is a breaking change, but there are no real users of this package yet. I want to use the opportunity to have an extensible type here, esp. to later add a cheaper alternative to context.Context.WithValue() that is baked by just `map[reflect.Type]any` instead of a stack of contexts.
* v1.16.0v1.16.0Stefan Majewsky2026-09-171-1/+1
|
* oblast: import from go.xyrillian.de/oblastStefan Majewsky2026-09-1721-3/+5029
| | | | | | - type RuntimeIndex is left behind for now because I don't want to commit to the method names yet - the "OrNone" methods are removed in favor of gsql.NoneIfNoRows()
* gsql: add NoneIfNoRowsStefan Majewsky2026-09-174-1/+55
|
* add TODOsStefan Majewsky2026-09-112-0/+6
|
* v1.15.0v1.15.0Stefan Majewsky2026-09-081-1/+1
|
* gsql: change WithinTransaction methods to take sql.TxOptionsStefan Majewsky2026-09-082-8/+11
| | | | This makes them usable as replacements for BeginTx + Commit/Rollback.
* assert: improve string literal representation in ErrEqual outputStefan Majewsky2026-08-192-4/+10
|
* microprom: fix outdated doc linksStefan Majewsky2026-08-182-5/+7
|
* v1.14.0v1.14.0Stefan Majewsky2026-08-181-1/+1
|
* microprom: add BenchmarkFormatLabelsStefan Majewsky2026-08-181-0/+25
|
* Merge branch 'microprom'Stefan Majewsky2026-08-1819-80/+1119
|\
| * test coverage for micropromStefan Majewsky2026-08-188-11/+165
| |
| * test coverage for internal/acceptStefan Majewsky2026-08-182-2/+88
| |
| * assert: add Panics, PanicsWithStefan Majewsky2026-08-188-77/+152
| | | | | | | | | | | | | | | | I want to use this for test coverage in microprom. This turned out to be a bigger change than expected because testcapture has a dependency on assert, which I had to invert to be able to use testcapture.Capture() in assert.
| * add testing/microprom, initial parity with promhttpStefan Majewsky2026-08-176-20/+364
| |
| * add package micropromStefan Majewsky2026-08-175-0/+380
|/ | | | | | This does not have test coverage yet, because the test coverage will be in the `testing/` module, but `go mod tidy` will not run there until there is a commit that has the microprom package itself.
* jsonmatch: write down idea for func CapturedFieldStefan Majewsky2026-08-111-0/+9
|
* v1.13.3v1.13.3Stefan Majewsky2026-08-051-1/+1
|
* pgruntime: add ConnectionTarget.ApplicationName attributeStefan Majewsky2026-08-053-12/+82
|
* v1.13.2v1.13.2Stefan Majewsky2026-08-051-1/+1
|
* gitignore: add go.work.sumStefan Majewsky2026-08-051-0/+1
|
* pgruntime: protect against concurrent migrationsStefan Majewsky2026-08-052-1/+22
|
* v1.13.1v1.13.1Stefan Majewsky2026-08-051-1/+1
|
* pgruntime: fix `psql --version` parsing on UbuntuStefan Majewsky2026-08-052-2/+11
| | | | | This currently breaks all repeated calls to WithTestDB (i.e., all users where more than two packages call WithTestDB) within GH Actions.
* v1.13.0v1.13.0Stefan Majewsky2026-08-013-3/+3
|
* pgruntime: link to pkg.go.dev for gg-pgxStefan Majewsky2026-08-011-1/+1
|
* Merge branch 'pgruntime'Stefan Majewsky2026-08-0121-1/+1232
|\
| * add testing/pgruntimeStefan Majewsky2026-08-0114-14/+238
| | | | | | | | | | | | | | | | Testing pgruntime has quickly turned out to be a nightmare, because so many parts of the test logic are not easily reproducible (e.g. `stopDBIfLingering`). I decided to not waste a bunch of time testing code that is relatively compact and easy to verify by careful examination, and that is unlikely to change a lot in the future.