💾 A database layer with a familiar PDO-like API but much more powerful. Building queries, advanced joins, drivers for MySQL, PostgreSQL, SQLite, MS SQL Server and Oracle.
CREATE TYPE physical_address AS (
name text,
extra_recipient_information text DEFAULT NULL,
street_number_and_name text,
extra_street_information text DEFAULT NULL,
post_office_box text,
postal_code text,
locality text,
country text
);
And a table of clients:
CREATE TABLE IF NOT EXISTS clients (
id uuid NOT NULL DEFAULT gen_random_uuid(),
name text NOT NULL,
address physical_address NOT NULL
);
Hello,
It seems the library does not support PostgreSQL custom types.
Say I have the following
physical_address
type:And a table of clients:
Containing the following row:
With the following code:
It looks like
address
is seen as a simple string:Is there a way to access sub fields? Something like: