@@ -775,12 +775,23 @@ and sets it to `req.securityContext`.
775
775
776
776
## SchemaFileRepository
777
777
778
+ <WarningBox >
779
+
780
+ The default implementation of the ` SchemaFileRepository ` contract is defined by
781
+ the [ ` FileRepository ` ] [ gh-cube-filerepo ] class. When using
782
+ [ ` FileRepository ` ] [ gh-cube-filerepo ] , all schema files must be within the same
783
+ directory.
784
+
785
+ </WarningBox >
786
+
787
+ [ gh-cube-filerepo] :
788
+ https://github.com/cube-js/cube.js/blob/master/packages/cubejs-server-core/src/core/FileRepository.ts
789
+
778
790
The ` SchemaFileRepository ` contract defines an async ` dataSchemaFiles ` function
779
791
which returns the files to compile for a schema. Returned by
780
- [ repositoryFactory] [ self-repofactory ] .
781
- ` @cubejs-backend/server-core/core/FileRepository ` is the default implementation
782
- of the ` SchemaFileRepository ` contract which accepts
783
- [ schemaPath] [ self-schemapath ] in the constructor.
792
+ [ repositoryFactory] [ self-repofactory ] . The [ ` FileRepository ` ] [ gh-cube-filerepo ]
793
+ implementation of the ` SchemaFileRepository ` contract accepts a
794
+ [ ` schemaPath ` ] [ self-schemapath ] in its constructor.
784
795
785
796
``` javascript
786
797
class ApiFileRepository {
@@ -825,7 +836,7 @@ module.exports = {
825
836
[ self-opts-sched-refresh-ctxs ] : #scheduled-refresh-contexts
826
837
[ self-opts-sched-refresh-tz ] : #scheduled-refresh-time-zones
827
838
[ self-repofactory ] : #repositoryFactory
828
- [ self-schemafilerepo ] : #SchemaFileRepository
839
+ [ self-schemafilerepo ] : #schema-file-repository
829
840
[ self-schemapath ] : #schemaPath
830
841
[ ref-exec-environment-globals] :
831
842
/schema/reference/execution-environment#node-js-globals-process-env-console-log-and-others
0 commit comments