This release contains a breaking change to the dbcrossbar-schema
output format to enable supporting named types and enumeration types. See below.
Added
-
(EXPERIMENTAL) postgres: The
postgres-sql
andpostgres
drivers nowCREATE TYPE
statements (but only in the"public"
schema). These can be used as follows:CREATE TYPE "format" AS ENUM ('gif', 'jpeg'); CREATE TABLE "images" ( "id" uuid NOT NULL, "url" text NOT NULL, "image_format" "format", "metadata" jsonb );
This change also requires some changes to the
dbcrossbar-schema
format, which are described below. -
(EXPERIMENTAL) The native
dbcrossbar-schema
format now supports a set ofnamed_types
definitions. This allows named types to be defined once, and to then be referred to elsewhere using{ "named": "my_custom_type" }
. -
(EXPERIMENTAL) The native
dbcrossbar-schema
format also supports string enumeration types using a{ "one_of": ["red", "green", "blue"] }
syntax.
Changed
- BREAKING: The
dbcrossbar-schema
output format has changed! It now has top levelnamed_types
andtables
members, and the old top-level table definition is now available as.tables[0]
. See the manual for more details. However,dbcrossbar
can still read the old input format with no problems, so this only affects other programs that parse nativedbcrossbar
schema.
Fixed
- The suggested fixes for RUSTSEC-2020-0146, RUSTSEC-2021-0020 and RUSTSEC-2021-0023 have been applied.