Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions db-service/lib/SQLService.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const cds = require('@sap/cds'),
DEBUG = cds.debug('sql|db')
const { Readable, Transform } = require('stream')
const { pipeline } = require('stream/promises')
// TODO
const { resolveView, getDBTable, getTransition } = require('@sap/cds/libx/_runtime/common/utils/resolveView')
const DatabaseService = require('./common/DatabaseService')
const cqn4sql = require('./cqn4sql')
Expand Down
1 change: 1 addition & 0 deletions db-service/lib/deep-queries.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const { _target_name4 } = require('./SQLService')

const ROOT = Symbol('root')

// TODO
const compareJson = require('@sap/cds/libx/_runtime/common/utils/compareJson').compareJson

const handledDeep = Symbol('handledDeep')
Expand Down
1 change: 1 addition & 0 deletions db-service/lib/fill-in-keys.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const cds = require('@sap/cds')
const { hasDeep } = require('./deep-queries')

// TODO
// REVISIT: very deep & fragile dependencies to internal modules -> copy these into here
const propagateForeignKeys = require('@sap/cds/libx/_runtime/common/utils/propagateForeignKeys')
const { enrichDataWithKeysFromWhere } = require('@sap/cds/libx/_runtime/common/utils/keys')
Expand Down
4 changes: 2 additions & 2 deletions db-service/test/cqn4sql/with-parameters.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
*/
'use strict'

const { SELECT } = require('@sap/cds/lib/ql/cds-ql')
const cqn4sql = require('../../lib/cqn4sql')
const cds = require('@sap/cds')
const { SELECT } = cds.ql
const cqn4sql = require('../../lib/cqn4sql')
const { expect } = cds.test
describe('entities and views with parameters', () => {
let model
Expand Down
2 changes: 1 addition & 1 deletion test/sflight/test/odata.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const cds = require('@sap/cds/lib')
const cds = require('@sap/cds')
const { GET, POST, PATCH, axios, expect } = cds.test(__dirname+'/..')
const EDIT = (url) => POST (url+'/TravelService.draftEdit',{})
const SAVE = (url) => POST (url+'/TravelService.draftActivate')
Expand Down