adding fiori

This commit is contained in:
Wolfgang Koch
2021-05-04 10:33:38 +02:00
parent 13fc17a760
commit 309c76caae
25 changed files with 1037 additions and 0 deletions

10
fiori/db/sqlite/index.cds Normal file
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
}