add simplest handler for sqlite

This commit is contained in:
D045778
2025-03-31 17:16:23 +02:00
parent aa4c9233d1
commit c8d2de3260

13
fiori/server.js Normal file
View File

@@ -0,0 +1,13 @@
const cds = require('@sap/cds')
cds.on('served', () => {
// register a simplified handler for tree table
// no filtering/searching/collapsing/expanding of nodes
if (cds.db.kind === 'sqlite') {
const { AdminService } = cds.services
AdminService.prepend(() => {
AdminService.on('READ', 'Genres', () => {
return SELECT.from('AdminService.Genres')
})
})
}
})