samples.statements.store-metadata.pec Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of WebSite Show documentation
Show all versions of WebSite Show documentation
Prompto Documentation Web Site POM
define Person as storable category with attribute name
define main as method doing:
p1 = Person with "John" as name
store p1 with { user: "albert" } as metadata
p2 = fetch one mutable Person where name = "John"
p2.name = "Johnny"
store p2 with { user: "jennifer" } as metadata
delete p2 with { user: "craig" } as metadata
audits = fetchAllAuditRecords with p2.dbId as dbId
for each audit in audits:
printLine "operation: " + audit.operation
meta = fetchAuditMetadata with (audit.metadataDbId as DbId) as dbId
printLine "utcTimestamp: " + meta.utcTimestamp
printLine "user: " + meta.user
© 2015 - 2024 Weber Informatics LLC | Privacy Policy