- Improve
pg
bindings. - Upgrade
@rescript/core
to1.6.0
.
- Autoinsert trailing commas in embedded SQL blocks.
- BREAKING CHANGE:
Null.t
is no longer emitted, allnull
values are autoconverted tooption
. This gives a much more idiomatic ReScript experience. - Emit actually runnable query in module comment for each query, instead of the original non-valid SQL query.
- Relax requirement on providing query via
@name
comment. - Change
expectOne
to panic if not finding a single item.
- Add mode for embedding
%sql
(withone
,expectOne
,many
, andexecute
flavors) in ReScript directly.
- Fix missing
rescript.json
in published package.
- Fix type generation for arrays of types like
JSON.t
. - BREAKING: Up required ReScript version to
>=11.1.0
and@rescript/core
to>=1.3.0
. - Proper
bigint
support. - Emit
@gentype
annotations for everything. - Add each query to its own ReScript module, and emit helpers
many
,one
,expectOne
andexecute
.
- [CLI] bin is now named
pgtyped-rescript
so it won't clash with stockpgtyped
.