Socket
Socket
Sign inDemoInstall

@wangct/mysql

Package Overview
Dependencies
218
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.6 to 1.1.7

0

index.js

@@ -0,0 +0,0 @@

@@ -0,0 +0,0 @@

2

lib/DbTable/index.js

@@ -125,3 +125,3 @@ const Mysql = require("../Mysql");

if(fields == null){
if(fields == null || fields == '*'){
fields = this.columns.map((item) => {

@@ -128,0 +128,0 @@ const field = getAlias(this.getTableName()) + '.' + item.field;

@@ -40,3 +40,3 @@ const {getObjId} = require("@wangct/util");

if(column.type == null){
['text','date','datetime','char','varchar'].some((field) => {
['text','date','datetime','char','varchar','int'].some((field) => {
const value = column[field];

@@ -43,0 +43,0 @@ if(value){

@@ -0,0 +0,0 @@ const mysql = require('mysql');

@@ -0,0 +0,0 @@ const {aryMap} = require("@wangct/util");

@@ -0,0 +0,0 @@ const {pathResolve} = require("@wangct/node-util");

@@ -0,0 +0,0 @@ const UniqueMap = require("./UniqueMap");

@@ -34,3 +34,4 @@ const {toAry} = require("@wangct/util");

getItemKey(item){
return getObjValue(item,this.key);
// todo 加a表示keys的时候可以按照添加的顺序排列
return 'a' + getObjValue(item,this.key);
}

@@ -37,0 +38,0 @@

{
"name": "@wangct/mysql",
"version": "1.1.6",
"version": "1.1.7",
"description": "mysql数据库连接工具",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc