Bot releases are hidden (Show)
Published by kyleconroy about 3 years ago
Beta release of v1.9.0. Please report any issues in the linked discussion.
Published by kyleconroy over 3 years ago
--experimental
flagPublished by kyleconroy almost 4 years ago
The new MySQL engine, code-named Dolphin, is now default. The old engine has been removed. Your generated code will be different, but should be easy to adapt. Please open an issue if your code is now broken. If you were using the mysql:beta
engine, you'll need to change that to mysql
.
db
tags for struct fields (#656)go get
(#744)go_type
import path of an override using an object instead of a string.overrides:
- db_type: "uuid"
go_type:
import: "gopkg.in/guregu/null.v3"
package: "null"
type: "Bool"
Published by kyleconroy about 4 years ago
The new MySQL engine, code-named Dolphin, has finally landed. To try it out, use mysql:beta
for the engine value in sqlc.json
. This uses the same compiler infrastructure as the PostgreSQL engine, giving it feature parity and making it easier to maintain.
The old engine is official deprecated and will be placed behind the mysql:deprecated
name in v1.6.0. The engine will be completely removed in v1.7.0. For more information, see the MySQL roadmap.
On the PostgreSQL side of things, I've used some magic to generate function signatures for all built-in functions. This also includes many of the most popular PostgreSQL extensions. You will need to make sure to have CREATE EXTENSION ...
in your schema to get this functionality.
mysql:beta
engine, which will be the default next releasePublished by kyleconroy over 4 years ago
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.
Published by kyleconroy over 4 years ago
Published by kyleconroy over 4 years ago
schema
and queries
can now be a list of paths (https://github.com/kyleconroy/sqlc/pull/426)SELECT *
(https://github.com/kyleconroy/sqlc/pull/436)Published by kyleconroy over 4 years ago
Published by kyleconroy over 4 years ago