UNPKG

@adpt/cloud

Version:
37 lines 1.41 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /* * Copyright 2019 Unbounded Systems, LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ const core_1 = require("@adpt/core"); /** * Abstract MongoDB component * * @remarks * This component is used to denote a needed {@link https://www.mongodb.com | MongoDB} * service. Users should use a style sheet to subsitute a concrete MongoDB instance * that provides the service. {@link mongodb.TestMongoDB} is such a component, suitable for * test environments. * * All implementations of this component should implmenent {@link ConnectToInstance} * that provides a `MONGODB_URI` variable of the form `mongodb://<hostname>:<port>`. * * @public */ class MongoDB extends core_1.PrimitiveComponent { connectEnv(_scope) { return undefined; } } exports.MongoDB = MongoDB; //# sourceMappingURL=MongoDB.js.map