// define the type with pg channel
DATA STRUCT versioned_type {
type_name: some_type
WITH versioned_type_snapshot {
version: 1,
snapshot_source: '{
instrument @0 :String,
size @1 :F64
}'
}
}
DATA STRUCT pg_channel {
schema_name: my_db_schema,
channel_name: the_new_channel,
payload_type: some_type
}DATA STRUCT backend_application_pg_shard {
...
used_consumer_channels: '
the_new_channel
',
used_producer_channels: '
the_new_channel
',
...
}
DATA STRUCT minio_public_ingress {
bucket: my-minio-cluster=>my-minio-bucket,
subdomain: muh-cdn,
tld: my-awesome-domain.net,
}

DATA MODULE OCAML "some-module"
TABLE test_table {
id INT PRIMARY KEY,
some_text TEXT DEFAULT 'hello',
}open! Context
open! Db_types
let define_data () =
mk_test_table ~id:123 () |> def_test_table;
mk_test_table ~id:123 ~some_text:"overriden" () |> def_test_table;
()