File tree Expand file tree Collapse file tree 5 files changed +15
-18
lines changed Expand file tree Collapse file tree 5 files changed +15
-18
lines changed Original file line number Diff line number Diff line change 8
8
- " 6"
9
9
10
10
script :
11
- - npm run lint-ci
12
- - npm run coveralls -- -c
11
+ - npm run lint
12
+ - npm run test
13
13
14
14
env :
15
15
- ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe ORACLE_SID=XE OCI_LIB_DIR=/u01/app/oracle/product/11.2.0/xe/lib LD_LIBRARY_PATH=/u01/app/oracle/product/11.2.0/xe/lib
Original file line number Diff line number Diff line change 1
1
# fastify-oracle
2
- [ ![ JavaScript Style Guide ] ( https://img.shields .io/badge/code_style-standard-brightgreen .svg )] ( https://standardjs.com )
3
- [ ![ Build Status ] ( https://travis-ci.org/cemremengu/fastify-oracle.svg?branch=master )] ( https://travis-ci.org/cemremengu/fastify-oracle )
4
- [ ![ Coverage Status ] ( https://coveralls. io/repos/github/cemremengu/fastify-oracle/badge .svg?branch=master )] ( https://coveralls.io/github/cemremengu/fastify-oracle?branch=master ) [ ![ Greenkeeper badge ] ( https://badges.greenkeeper.io /cemremengu/fastify-oracle.svg )] ( https://greenkeeper.io/ )
2
+ [ ![ Greenkeeper badge ] ( https://badges.greenkeeper .io/cemremengu/fastify-oracle .svg )] ( https://greenkeeper.io/ )
3
+
4
+ [ ![ JavaScript Style Guide ] ( https://img.shields. io/badge/code_style-standard-brightgreen .svg )] ( https://standardjs.com ) [ ![ Build Status ] ( https://travis-ci.org /cemremengu/fastify-oracle.svg?branch=master )] ( https://travis-ci.org/cemremengu/fastify-oracle )
5
5
6
6
This module provides access to an Oracle database connection pool via the
7
7
[ oracledb] ( https://npm.im/oracledb ) module. It decorates the [ Fastify] ( https://fastify.io )
@@ -114,5 +114,5 @@ If needed `pool` instance can be accessed via `fastify.oracle[.dbname].pool`
114
114
## Acknowledgements
115
115
116
116
Thanks to
117
- - [ James Sumners] ( https://github.com/jsumners ) for his work and transferring his repository to me.
117
+ - [ James Sumners] ( https://github.com/jsumners ) , who is the original author of this plugin, for his work and transferring his repository to me.
118
118
- [ Vincit] ( https://github.com/Vincit/travis-oracledb-xe ) for his Travis Oracle work.
Original file line number Diff line number Diff line change 4
4
"description" : " A plugin for Fastify to provide Oracle DB connections" ,
5
5
"main" : " plugin.js" ,
6
6
"scripts" : {
7
- "test" : " tap 'test/**/*.test.js'" ,
8
- "test-ci" : " tap --cov 'test/**/*.test.js'" ,
9
- "lint" : " standard | snazzy" ,
10
- "lint-ci" : " standard" ,
11
- "coveralls" : " npm run test-ci -- --cov"
7
+ "test" : " tap --cov 'test/**/*.test.js'" ,
8
+ "lint" : " standard | snazzy"
12
9
},
13
10
"precommit" : [
14
11
" lint" ,
15
12
" test"
16
13
],
17
14
"repository" : {
18
15
"type" : " git" ,
19
- "url" : " git+ssh://git@github.com/jsumners /fastify-oracle.git"
16
+ "url" : " git+ssh://git@github.com/cemremengu /fastify-oracle.git"
20
17
},
21
18
"keywords" : [
22
19
" fastify" ,
23
20
" oracle"
24
21
],
25
- "author" : " James Sumners <james.sumners @gmail.com>" ,
22
+ "author" : " Cemre Mengu <cemremengu @gmail.com>" ,
26
23
"license" : " MIT" ,
27
24
"bugs" : {
28
- "url" : " https://github.com/jsumners /fastify-oracle/issues"
25
+ "url" : " https://github.com/cemremengu /fastify-oracle/issues"
29
26
},
30
- "homepage" : " https://github.com/jsumners /fastify-oracle#readme" ,
27
+ "homepage" : " https://github.com/cemremengu /fastify-oracle#readme" ,
31
28
"devDependencies" : {
32
29
"coveralls" : " ^3.0.2" ,
33
30
"fastify" : " ^1.1.0" ,
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ test('accepts singleton client', (t) => {
24
24
}
25
25
}
26
26
27
- plugin ( fastify , { client : pool } , ( err ) => {
27
+ plugin ( fastify , { client : pool } , ( err ) => {
28
28
if ( err ) t . threw ( err )
29
29
pool . close ( )
30
30
} )
@@ -52,7 +52,7 @@ test('retrieves a cached pool', (t) => {
52
52
}
53
53
}
54
54
55
- plugin ( fastify , { poolAlias : 'foo' } , ( err ) => {
55
+ plugin ( fastify , { poolAlias : 'foo' } , ( err ) => {
56
56
if ( err ) t . threw ( err )
57
57
pool . close ( )
58
58
} )
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ test('creates usable pool from config', (t) => {
23
23
password : 'travis' ,
24
24
connectString : 'localhost/xe'
25
25
}
26
- plugin ( fastify , { pool : opts } , ( err ) => {
26
+ plugin ( fastify , { pool : opts } , ( err ) => {
27
27
if ( err ) t . threw ( err )
28
28
t . ok ( fastify . oracle )
29
29
fastify . oracle . getConnection ( )
You can’t perform that action at this time.
0 commit comments