Your Question
Hello there. I would like to know if there is a way to create a object table based on struct with gorm.
The document you expected this should be explained
On Objetct-Relational, we can create object-types, and then create object-tables based from these object-types. For example:
Creating some types:
CREATE TYPE address_type AS OBJECT (
street VARCHAR(50),
city VARCHAR(25),
state CHAR(2),
zip_code NUMBER
);
CREATE TYPE person_type AS OBJECT (
name VARCHAR(50),
address address_type
);
Creating table:
CREATE TABLE person_tab OF person_type;
Inserting values:
INSERT INTO person_tab VALUES (
person_type('John Mayer',
address_type('Sun Street', 'Miami', 'FL', '524542')
)
);
Expected answer
I would like to implement the same code using gorm features.
Comment From: github-actions[bot]
This issue has been automatically marked as stale because it has been open 360 days with no activity. Remove stale label or comment or this will be closed in 180 days