-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(repository): define constants for repository binding namespaces …
…and tags
- Loading branch information
1 parent
275f479
commit a01d4d2
Showing
4 changed files
with
81 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// Copyright IBM Corp. 2020. All Rights Reserved. | ||
// Node module: @loopback/repository | ||
// This file is licensed under the MIT License. | ||
// License text available at https://opensource.org/licenses/MIT | ||
|
||
/** | ||
* Binding tags for repository related bindings | ||
*/ | ||
export namespace RepositoryTags { | ||
/** | ||
* Tag for model class bindings | ||
*/ | ||
export const MODEL = 'model'; | ||
/** | ||
* Tag for repository bindings | ||
*/ | ||
export const REPOSITORY = 'repository'; | ||
/** | ||
* Tag for datasource bindings | ||
*/ | ||
export const DATASOURCE = 'datasource'; | ||
} | ||
|
||
/** | ||
* Binding keys and namespaces for repository related bindings | ||
*/ | ||
export namespace RepositoryBindings { | ||
/** | ||
* Namespace for model class bindings | ||
*/ | ||
export const MODELS = 'models'; | ||
/** | ||
* Namespace for repository bindings | ||
*/ | ||
export const REPOSITORIES = 'repositories'; | ||
/** | ||
* Namespace for datasource bindings | ||
*/ | ||
export const DATASOURCES = 'datasources'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters