github dbcrossbar/dbcrossbar v0.5.0-alpha.1
0.5.0-alpha.1 - 2021-03-04

latest releases: v0.5.7, v0.5.6, v0.5.5...
pre-release3 years ago

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 and postgres drivers now CREATE 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 of named_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 level named_types and tables 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 native dbcrossbar schema.

Fixed

  • The suggested fixes for RUSTSEC-2020-0146, RUSTSEC-2021-0020 and RUSTSEC-2021-0023 have been applied.

Don't miss a new dbcrossbar release

NewReleases is sending notifications on new releases.