Skip to content

Releases: sqlc-dev/sqlc

v1.4.0

17 Jun 16:03
f85eecf
Compare
Choose a tag to compare

Notes

This release includes a complete refactor of the compiler internals. The compiler now uses a database-agnostic SQL AST. The PostgreSQL backend uses this new code path by default. I've tested the new path extensively, but you still may run into bugs. If you do, you can use the old code path by setting the the following environment variable: SQLC_EXPERIMENTAL_PARSER=off. The old code path will be removed in v1.5.0, so please report any bugs you run into.

A new :execresult query command has been added. The generated methods will return (sql.Result, error), the same as DB.ExecContext.

Changelog

Core

  • Post the compiler to the new, database-agnostic SQL AST
  • Add support for dbmate migrations (#511)
  • Apply rename rules to enum constants (#523)
  • Add the :execresult query annotation (#542)

PostgreSQL

  • Support columns from subselect statements (#489)
  • Temporary fix for typecast function parameters (#530)
  • Support functions with table parameters (#541)

v1.3.0

12 May 17:40
a0a2dd9
Compare
Choose a tag to compare

Core

  • Exclude golang-migrate .down.sql files in dirs + single files (#445)
  • Add EmitExactTableNames config option (#474)

PostgreSQL

v1.2.0

07 Apr 20:31
1066e05
Compare
Choose a tag to compare

Core

  • Publish an official Docker container (#422)
  • Configuration values for schema and queries can now be a list of paths (#426)
  • Rename rules correctly apply to table names (#435)

SQLite

  • Add support for ALTER TABLE DDL (#414)

PostgreSQL

  • Generate correct type for SELECT EXISTS (#411)
  • Add support for ALTER TYPE RENAME / ADD VALUE (#433)
  • Properly quote reserved keywords when expanding SELECT * (#436)

v1.1.0

17 Mar 23:45
248e72b
Compare
Choose a tag to compare

Core

  • Allow sqlc.arg('argname') form for named params (#351)
  • Apply changes to the ValuesList slice (#372)

PostgreSQL

  • Add support for create-if-not-exists for 'create schema' (#362)
  • Add support for the ltree extension (#385)

Go

  • Support Postgres macaddr type in Go (#358)
  • Scan enums when using pgx (#386)
  • Fix column comment (#392

Kotlin

  • Add Query class to support timeout and cancellation (#368)

v1.0.0

18 Feb 19:08
2471b6d
Compare
Choose a tag to compare
  • Add experimental support for MySQL and Kotlin
  • Fix various bugs
  • Implement a new, more rigorous, testing framework

v0.1.0: Set stdout correctly (#232)

08 Jan 00:07
Compare
Choose a tag to compare
The `cmd.Do` function takes a writer to use as standard out, but doesn't
use it. Instead, there's a duplicate call to `cobra.Command.SetErr`.
This patch replaces one of the duplicates with `SetOut`.