@wangct/mysql
Advanced tools
Comparing version 1.1.6 to 1.1.7
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ |
@@ -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", |
702
20302