Introduced bookstore composite app

This commit is contained in:
Daniel
2021-10-19 15:27:56 +02:00
committed by Daniel Hutzel
parent 366b0f8f9a
commit 680a6ae68f
19 changed files with 97 additions and 61 deletions

View File

@@ -0,0 +1,10 @@
//
// Add Author.age and .lifetime with a DB-specific function
//
using { AdminService } from '../schema';
extend projection AdminService.Authors with {
strftime('%Y',dateOfDeath)-strftime('%Y',dateOfBirth) as age: Integer,
strftime('%Y',dateOfBirth) || ' ' || strftime('%Y',dateOfDeath) as lifetime : String
}