Releases: sqlc-dev/sqlc
Releases · sqlc-dev/sqlc
v1.15.0
What's Changed
- docs: Add process-based plugin docs by @kyleconroy in #1669
- Update BUG_REPORT.yml by @kyleconroy in #1672
- docs: Add links to downloads.sqlc.dev by @kyleconroy in #1681
- feat: More SQL Syntax Support for SQLite by @hakobera in #1687
- Added documentation for type overriding and field renaming for the version 2 of the configuration file by @eullerpereira94 in #1695
- build(deps): bump github.com/spf13/cobra from 1.4.0 to 1.5.0 by @dependabot in #1694
- Fixed typo by @i6u in #1700
- feat(sqlite): Promote SQLite support to beta by @kyleconroy in #1699
- feat: Codegen plugins, powered by WASM by @kyleconroy in #1684
- feat: Set user-agent for plugin downloads by @kyleconroy in #1707
- plugins(wasm): Change default cache location by @kyleconroy in #1709
- plugins(wasm): Change the SHA-256 config key by @kyleconroy in #1710
- improve mysql container support for testing by @hakobera in #1711
- build(deps): bump github.com/pganalyze/pg_query_go/v2 from 2.1.0 to 2.1.2 by @dependabot in #1715
- build(deps): bump github.com/bytecodealliance/wasmtime-go from 0.37.0 to 0.38.1 by @dependabot in #1719
- Feat/nullable enums by @sbres in #1485
- Support sqlite stdlib functions by @hakobera in #1712
- fix(postgresql): Add quotes for CamelCase columns by @akutschera in #1729
- chore: Add tests for quoting columns by @kyleconroy in #1733
- fix: cannot parse SQLite upsert statement by @hakobera in #1732
- sqlite - use []byte for blobs by @javiercbk in #1693
- fix(sqlite): Regenerate test output for builtins by @kyleconroy in #1735
- fix(wasm): Version modules by wasmtime version by @kyleconroy in #1734
- fix: missing imports for slices by @jlisthood in #1637
- test: Add tests for fixing slice imports by @kyleconroy in #1736
- test: Add test cases for returning by @kyleconroy in #1737
- feat(sqlite) add support for returning by @hakobera in #1741
- build(deps): bump golang from 1.18.3 to 1.18.4 by @dependabot in #1743
- Upgrade pingcap parser (#1759) by @akutschera in #1760
- chore: Remove catalog tests by @kyleconroy in #1762
- build(deps): bump google.golang.org/protobuf from 1.28.0 to 1.28.1 by @dependabot in #1763
- Fix typo in
docs/reference/config.mdby @Dexter2389 in #1764 - Add nowasm tag, fix nowasm inconsistency by @SN9NV in #1772
- fix: missing slice import for querier by @jlisthood in #1773
- build(deps): bump golang from 1.18.4 to 1.19.0 by @dependabot in #1768
- feat(sqlite) add support subquery and table function by @hakobera in #1771
- docs: Update transactions how to example by @jasonblanchard in #1775
- build: Upgrade to Go 1.19 by @kyleconroy in #1780
- build: Upgrade to go-wasmtime 0.39.0 by @kyleconroy in #1781
- cmd(sqlc): Bump version to v1.15.0 by @kyleconroy in #1782
- docs: Add 1.15 changelog by @kyleconroy in #1783
New Contributors
- @hakobera made their first contribution in #1687
- @i6u made their first contribution in #1700
- @sbres made their first contribution in #1485
- @akutschera made their first contribution in #1729
- @javiercbk made their first contribution in #1693
- @Dexter2389 made their first contribution in #1764
- @SN9NV made their first contribution in #1772
- @jasonblanchard made their first contribution in #1775
Full Changelog: v1.14.0...v1.15.0
v1.14.0
What's Changed
- fix(bundler): Only close multipart writer once by @kyleconroy in #1528
- Adding LastInsertId for Go by @xeoncross in #1484
- build(deps): bump github.com/lib/pq from 1.10.4 to 1.10.5 by @dependabot in #1534
- build(deps): bump actions/setup-java from 2 to 3 by @dependabot in #1542
- build(deps): bump actions/setup-go from 2 to 3 by @dependabot in #1543
- build(deps): bump golang from 1.18.0 to 1.18.1 by @dependabot in #1547
- Added update query to postgresql docs by @airscholar in #1535
- feat: run sqlc with docker on windows cmd by @ParvinEyvazov in #1557
- Pydantic models config field by @danicc097 in #1538
- build(deps): bump github.com/jackc/pgx/v4 from 4.15.0 to 4.16.0 by @dependabot in #1562
- Prepend an underscore to a StructName if it starts with a digit. by @avalonbits in #1554
- fix typo in feature request bug template by @josharian in #1568
- feat: Add JSON "codegen" output by @kyleconroy in #1565
- build(deps): bump github.com/google/go-cmp from 0.5.7 to 0.5.8 by @dependabot in #1573
- UPDATED: sqlc.narg() - allow user-specified nullability by @skabbes in #1536
- docs: add documentation for sqlc.narg() by @skabbes in #1580
- docs: Add some more example code for running transactions by @Jille in #1583
- build(deps): bump github.com/jackc/pgx/v4 from 4.16.0 to 4.16.1 by @dependabot in #1597
- Add 1.13.0 to Issue Template by @danielbprice in #1592
- Add support for CHANGE COLUMN in MySQL by @dansimau in #1605
- build(deps): bump golang from 1.18.1 to 1.18.2 by @dependabot in #1609
- docs: fix examples by @orisano in #1608
- Fix panic when calling cmd.Do subsequently by @jlisthood in #1614
- build(deps): bump github.com/lib/pq from 1.10.5 to 1.10.6 by @dependabot in #1627
- doc: typo fix in overrides config example by @reddec in #1619
- [FIX] copyfrom imports by @positiveblue in #1626
- internal/codegen: add Enum.Valid and AllEnumValues by @josharian in #1613
- Refactor to Package Catalog to Improve Readability by @jakoguta in #1595
- Validate sqlc function arguments by @ryan-berger in #1633
- Bug fix to index relation creation bug by @jakoguta in #1640
- docs: Add documentation for version 2 of the configuration file by @kyleconroy in #1657
- build(deps): bump golang from 1.18.2 to 1.18.3 by @dependabot in #1658
- docs: Re-org the config page. Add JSON docs by @kyleconroy in #1659
- build(deps): bump actions/setup-python from 3 to 4 by @dependabot in #1666
- add support for custom Go struct tags by @josharian in #1569
- fix: fixed typo
sql.nargin doc by @akhilmhdh in #1668 - feat: Process-based codegen plugins by @kyleconroy in #1578
- cmd/sqlc: Bump version to v1.14.0 by @kyleconroy in #1670
New Contributors
- @xeoncross made their first contribution in #1484
- @airscholar made their first contribution in #1535
- @ParvinEyvazov made their first contribution in #1557
- @danicc097 made their first contribution in #1538
- @avalonbits made their first contribution in #1554
- @josharian made their first contribution in #1568
- @skabbes made their first contribution in #1536
- @danielbprice made their first contribution in #1592
- @jlisthood made their first contribution in #1614
- @reddec made their first contribution in #1619
- @positiveblue made their first contribution in #1626
- @jakoguta made their first contribution in #1595
- @ryan-berger made their first contribution in #1633
- @akhilmhdh made their first contribution in #1668
Full Changelog: v1.13.0...v1.14.0
v1.13.0
What's Changed
- Define code generation interface via Protocol Buffers by @kyleconroy in #1406
- Refactor Kotlin codegen package to use plugin types by @kyleconroy in #1416
- fix(postgresql): Remove extra newline with db argument by @rliebz in #1417
- build(deps): bump github.com/jackc/pgx/v4 from 4.14.1 to 4.15.0 by @dependabot in #1421
- docs: Specify which db_type should be used in overrides by @egtann in #1427
- fix copyfrom methods on interface not matching generated methods by @alexdulin in #1424
- build(deps): bump golang from 1.17.6 to 1.17.7 by @dependabot in #1431
- docs: Add more documentation for go_type by @kyleconroy in #1432
- Start filling out SQLite support by @PadraigK in #1410
- Support codespace development by @kyleconroy in #1434
- chore: fix extra newline in comments for copyfrom by @alexdulin in #1438
- feat(pgx): Add support for batch operations by @jrperritt in #1437
- SQLite: Adds a few more tests, fixes DROP TABLE by @PadraigK in #1443
- Add support for delete statements by @PadraigK in #1447
- feat(sqlite) Adds support for column aliases and function arguments by @PadraigK in #1455
- feat(codegen): Insert comments in interfaces by @kyleconroy in #1458
- build(deps): bump actions/setup-python from 2 to 3 by @dependabot in #1461
- Refactor go codegen to plugin types by @stephen in #1460
- feat(sdk): Add the plugin SDK package by @kyleconroy in #1463
- build(deps): bump actions/checkout from 2.4.0 to 3 by @dependabot in #1464
- refactor(cmd): Simplify codegen selection logic by @kyleconroy in #1466
- chore: Generate marshal/unmarshal with vtprotobuf by @kyleconroy in #1467
- Remove data_type from column proto by @stephen in #1468
- docs: Add new logo by @kyleconroy in #1471
- docs: Add hosted services to privacy / data guide by @kyleconroy in #1475
- build(deps): bump golang from 1.17.7 to 1.17.8 by @dependabot in #1476
- docs: Add Plausible analytics by @kyleconroy in #1477
- build(deps): bump github.com/spf13/cobra from 1.3.0 to 1.4.0 by @dependabot in #1483
- fix(compiler): Fix left join nullability with table aliases by @timstudd in #1491
- build(endtoend): Don't run tests in testdata by @kyleconroy in #1492
- build(deps): bump golang from 1.17.8 to 1.18.0 by @dependabot in #1493
- feat: Upload projects by @kyleconroy in #1436
- Add a new issue template by @kyleconroy in #1497
- docs: Add more examples to updating rows by @kyleconroy in #1499
- config: Add basic fuzzing for config / overrides by @kyleconroy in #1500
- build(deps): bump google.golang.org/protobuf from 1.27.1 to 1.28.0 by @dependabot in #1504
- Added postgres CALL support by @terrycain in #1495
- Add version number to Python code comments by @kyleconroy in #1511
- feat: Add sqlc version to generated Kotlin code by @kyleconroy in #1512
- feat: Add sqlc version to generated Go code by @kyleconroy in #1513
- feat: Pass sqlc version in codegen request by @kyleconroy in #1514
- add materialized view support by @ludusrusso in #1509
- fix: Regenerate testdata for CREATE TABLE AS by @kyleconroy in #1516
- feat(python): Graduate Python support to beta by @kyleconroy in #1520
- docs: Include scope in changelog format by @kyleconroy in #1521
- release(cmd/sqlc): Bump to v1.13.0 by @kyleconroy in #1523
New Contributors
- @rliebz made their first contribution in #1417
- @alexdulin made their first contribution in #1424
- @jrperritt made their first contribution in #1437
- @stephen made their first contribution in #1460
- @terrycain made their first contribution in #1495
- @ludusrusso made their first contribution in #1509
Full Changelog: v1.12.0...v1.13.0
v1.12.0
What's Changed
- fix(sqlite): Update ANTLR v4 go.mod entry by @kyleconroy in #1336
- fix(compiler): Check delete statements for CTEs by @wabain in #1329
- First pass at AST-based codegen by @kyleconroy in #1333
- Postgres Inherits by @timwmillard in #1339
- chore(python): Add tests for :exec{result,rows} by @kyleconroy in #1344
- Generate queries class by @kyleconroy in #1338
- chore(python): Delete template-based codegen by @kyleconroy in #1345
- fix(compiler): Fix validation of GROUP BY on field aliases by @timstudd in #1348
- handling of dollar signs in function names by @Nlossae in #1359
- Add support for CREATE TABLE a ( LIKE b ) for Postgres by @Jille in #1355
- Update error message by @Threpio in #1366
- feat(postgres): Add support for sql.NullInt16 by @egtann in #1376
- Implement support for pgx's CopyFrom by @Jille in #1352
- Fixed typo in select.md by @Hirochon in #1378
- fix(copyfrom): Fix imports when non-copyfrom queries needed imports that copyfrom queries didn't by @Jille in #1386
- build: Format all Go code by @kyleconroy in #1387
- fix(postgresql): Remove extra comment newline by @kyleconroy in #1395
- Migrate SQLite Grammar to maintained version by @PadraigK in #1397
- Fix return type for subqueries in MySQL (#1383) by @dansimau in #1404
- fix: Enable strict function checking by @kyleconroy in #1405
- Bug: ALTER TABLE SET SCHEMA by @timwmillard in #1409
- cmd/sqlc: Bump version to v1.12.0 by @kyleconroy in #1415
New Contributors
- @Nlossae made their first contribution in #1359
- @Jille made their first contribution in #1355
- @Threpio made their first contribution in #1366
- @egtann made their first contribution in #1376
- @Hirochon made their first contribution in #1378
- @PadraigK made their first contribution in #1397
- @dansimau made their first contribution in #1404
Full Changelog: v1.11.0...v1.12.0
v1.11.0
Bug Fixes
- Update incorrect signatures (#1180)
- Correct aggregate func sig (#1182)
- Jsonb_build_object (#1211)
- Case-insensitive identifiers (#1216)
- Incorrect handling of meta (#1228)
- Detect invalid INSERT expression (#1231)
- Respect alias name for coalesce (#1232)
- Mark nullable when casting NULL (#1233)
- Support nullable fields in joins for MySQL engine (#1249)
- Fix between expression handling of table references (#1268)
- Support nullable fields in joins on same table (#1270)
- Fix missing binds in ORDER BY (#1273)
- Set RV for TargetList items on updates (#1252)
- Fix MySQL parser for query without trailing semicolon (#1282)
- Validate table alias references (#1283)
- Add support for MySQL ON DUPLICATE KEY UPDATE (#1286)
- Support references to columns in joined tables in UPDATE statements (#1289)
- Add validation for GROUP BY clause column references (#1285)
- Prevent variable redeclaration in single param conflict (#1298)
- Use common params struct field for same named params (#1296)
Documentation
- Replace deprecated go get with go install (#1181)
- Fix package name referenced in tutorial (#1202)
- Add environment variables (#1264)
- Add go.17+ install instructions (#1280)
- Warn about golang-migrate file order (#1302)
Features
Refactor
- Move from io/ioutil to io and os package (#1164)
Styling
- Apply gofmt to sample code (#1261)
New Contributors
- @Juneezee made their first contribution in #1164
- @ovadbar made their first contribution in #1072
- @l4u made their first contribution in #1199
- @oliverpool made their first contribution in #1204
- @cqsd made their first contribution in #1209
- @snakeclown made their first contribution in #1248
- @timstudd made their first contribution in #1249
- @orisano made their first contribution in #1261
- @andreasgan made their first contribution in #1252
- @lopezator made their first contribution in #1280
- @danielmmetz made their first contribution in #1279
- @wabain made their first contribution in #1301
- @remLse made their first contribution in #1302
Full Changelog: v1.10.0...v1.11.0
v1.10.0
Release notes coming soon!
What's Changed
- Fix typos in howto/select generated code sample by @NAISUUUU in #1125
- Remove MYSQL_USER and MYSQL_PASSWORD from docker-compose.yaml by @robsonpeixoto in #1123
- build(deps): bump golang from 1.16.7 to 1.17.0 by @dependabot in #1129
- ci: Upgrade Go to 1.17 by @kyleconroy in #1130
- getting-started.md: fix typo by @LLLeon in #1133
- Add RStudio to list of sponsors by @kyleconroy in #1131
- endtoend: Run
go testin CI by @kyleconroy in #1134 - golang: Output NullUUID when necessary by @kyleconroy in #1137
- codegen/golang: Consolidate import logic by @kyleconroy in #1139
- codgen/golang: Use p[gq]type for network address types by @kyleconroy in #1142
- When using pgx, map numeric types to pgtype.Numeric by @kyleconroy in #1143
- Handle null PostgreSQL JSON values by @kyleconroy in #1145
- codegen/golang: Add pgx support for range types by @kyleconroy in #1146
- First attempt at a template for bugs by @kyleconroy in #1151
- Re-order form, add configuration file section by @kyleconroy in #1153
- codegen/golang: Use pgtype for hstore when using pgx by @kyleconroy in #1156
- build(deps): bump github.com/lib/pq from 1.10.2 to 1.10.3 by @dependabot in #1160
- docs: Fix invalid language support table by @kyleconroy in #1161
- engine/mysql: Add support for LIKE by @kyleconroy in #1162
- docs: Add a getting started guide for MySQL by @kyleconroy in #1163
- cmd/sqlc: Bump version to v1.10.0 by @kyleconroy in #1165
New Contributors
- @NAISUUUU made their first contribution in #1125
- @robsonpeixoto made their first contribution in #1123
- @LLLeon made their first contribution in #1133
Full Changelog: v1.9.0...v1.10.0
v1.9.0
v1.9.0-beta1
Beta release of v1.9.0. Please report any issues in the linked discussion.
v1.8.0
Core
- cmd: Fix sqlc init (#959)
MySQL
- Generate correct code for booleans
- Calling mysql LAST_INSERT_ID(expr) function (#977)
PostgreSQL
- Support PostgreSQL 12 and 13 features by upgrading to pg_query_go/v2 (#949)
- Fix ALTER TYPE to update column types (#973)
Python
- Add experimental Python support behind the
--experimentalflag
v1.7.0
Changelog
Core
- Initial Windows Support (#886)
- UNION support (#896)
- Publish documentation at https://docs.sqlc.dev
- cmd: Allow config file location to be specified (#863)
- Exit with non-zero error code when parsing fails (#870)