node-oracledb/test/dbconfig.js

39 lines
1.4 KiB
JavaScript
Raw Normal View History

/* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. */
2015-07-20 12:42:12 +08:00
/******************************************************************************
*
* You may not use the identified files except in compliance with the Apache
* License, Version 2.0 (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.
*
2016-03-24 14:09:53 +08:00
* The node-oracledb test suite uses 'mocha', 'should' and 'async'.
2015-07-21 05:38:41 +08:00
* See LICENSE.md for relevant licenses.
*
2015-07-20 12:42:12 +08:00
* NAME
* dbConfig.js
*
* DESCRIPTION
2016-05-16 07:57:53 +08:00
* Holds the dbConfigs used by node-oracledb tests to connect to
2015-07-20 12:42:12 +08:00
* the database. The user requires privileges to connect and create
* tables.
2016-03-24 14:09:53 +08:00
*
2016-05-16 07:57:53 +08:00
* See examples/dbconfig.js for details about connection dbConfigs.
2015-07-20 12:42:12 +08:00
*
*****************************************************************************/
module.exports = {
2015-08-17 14:19:36 +08:00
user : process.env.NODE_ORACLEDB_USER || "hr",
password : process.env.NODE_ORACLEDB_PASSWORD || "welcome",
connectString : process.env.NODE_ORACLEDB_CONNECTIONSTRING || "localhost/orcl",
externalAuth : process.env.NODE_ORACLEDB_EXTERNALAUTH ? true : false
2015-07-20 12:42:12 +08:00
};