I have an Events relation that defines a schema. I've configured it to use the Event struct, which inherits from ROM::Struct. How can I instantiate a new Event to use the create command and insert new records into my dataset? Do I have to define the attributes on the custom struct? What if I'm trying to take advantage of the infer: true option?
I have an
Events
relation that defines a schema. I've configured it to use theEvent
struct, which inherits fromROM::Struct
. How can I instantiate a newEvent
to use thecreate
command and insert new records into my dataset? Do I have to define the attributes on the custom struct? What if I'm trying to take advantage of theinfer: true
option?Thanks.