rebuild sample to self cont

This commit is contained in:
Wolfgang Koch
2021-04-30 11:13:14 +02:00
parent 0d8abf71cb
commit c458bf0f47
48 changed files with 335 additions and 1154 deletions

View File

@@ -1,10 +0,0 @@
//
// 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
}