jyz-common-library-type
TypeScript icon, indicating that this package has built-in type declarations

1.0.10 • Public • Published

Coverage Status

common-ts

common-ts library

Version

NodeJS v12.22.12
NPM 6.14.16

Notice

  1. 測試指標
  • Line coverage (行覆蓋率) : 每一行是否都有被執行。
  • Statement coverage (敘述覆蓋率) : 每個敘述是否都有執行。
  • Branch coverage (分支覆蓋率) : 每個條件是否都有執行。
  • Function coverage (函數覆蓋率) : 每個函數是否都有執行。

Tip

如果 nyc 無法正常顯示測試指標,請遵行以下步驟排除

1. npm i nyc -g
2. rm -rf node_modules package-lock.json
3. npm i

Usage

import * as jyzLib from 'jyz-common-library-type';

const params1 = [1, 2, 3];
const params2 = [2, 3, 4];

console.log(jyzLib.yieldUpdateItem(params1, params2));
// Response
{ shouldUpdate: true, insertItem: [ 4 ], deleteItem: [ 1 ] }

Provide Function

  • Global

    • yieldUpdateItem
    • yieldDefaultTime
  • SQL Command For Sequelize

    • insertQuery
    • insertMultipleQuery
    • updateQuery
    • deleteQuery
    • deleteQueryWithMultipleKey
    • deleteMultipleQuery
  • SQL Command For Oracledb

    • insertQueryByOracle
    • insertMultipleQueryByOracle
    • updateQueryByOracle
    • deleteQueryByOracle
    • deleteQueryWithMultipleKeyByOracle
    • deleteMultipleQueryByOracle

Readme

Keywords

Package Sidebar

Install

npm i jyz-common-library-type

Weekly Downloads

2

Version

1.0.10

License

MIT

Unpacked Size

416 kB

Total Files

26

Last publish

Collaborators

  • heroyuans