cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CAP: SQLite deploy error about csv location

alicegavanelli
Participant
1,815

Dear Experts,

reading CAP documentation about deploy providing-initial-data I noticed that csv files, could be located in three different folders: db/csv, db/data/, or db/src/csv

I have tryed with all of these, under the results:

db/csv -> OK

db/data -> OK

db/data/other_folder -> KO

db/src/csv -> KO

In documentation if I read db/data/ with symbol "/" I understand that I could add other underfolder. But it is not true. Is it an error?

Folder db/src/csv doesn't work despite documenation.

Below my release:

@sap/cds: 5.0.6
@sap/cds-compiler: 2.4.4
@sap/cds-dk: 4.0.7
@sap/cds-foss: 2.3.1
@sap/cds-runtime: 3.0.9
Node.js: v14.16.0<br>

Thank you in advance.

Best

Alice

View Entire Topic
chgeo
Product and Topic Expert
Product and Topic Expert

I see, you are confused by the trailing / in the documentation. However, trailing slashes do usually not indicated sub folders (recursively even). Normally, this would be indicated by ** globs or so.

But yes, we will remove the /

alicegavanelli
Participant
0 Likes

What about 'db/src/csv'?

Thank

Alice