node-mysql78
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -8,3 +8,3 @@ "use strict"; | ||
/* | ||
* ��Сʾ�� | ||
* small | ||
*let config={host:"127.0.0.1",password:"test",database:"testdb"} | ||
@@ -48,6 +48,6 @@ * | ||
/** | ||
* sql get���� | ||
* @param cmdtext sql��� | ||
* @param values ���� | ||
* @param up �û��ϴ�������(��Ҫ������־) | ||
* sql get | ||
* @param cmdtext sql | ||
* @param values | ||
* @param up user upload | ||
*/ | ||
@@ -83,3 +83,3 @@ doGet(cmdtext, values, up) { | ||
} | ||
//����Ϊ��ȥ�����һ������ | ||
//remove something | ||
var str = JSON.stringify(back); | ||
@@ -97,9 +97,9 @@ let lendown = str.length; | ||
/** | ||
* ���ز����ɹ� ��ʧ����Ϣ | ||
* @param cmds ��������� | ||
* @param values ������� | ||
* @param errtexts ���������ʾ | ||
* @param logtext log�� | ||
* @param logvalue log�� | ||
* @param up �û��ϴ� | ||
* The transaction returns information about the success or failure of the operation | ||
* @param cmds more sql | ||
* @param values more value | ||
* @param errtexts more err | ||
* @param logtext log | ||
* @param logvalue log | ||
* @param up user upload | ||
*/ | ||
@@ -155,6 +155,6 @@ doT(cmds, values, errtexts, logtext, logvalue, up) { | ||
/** | ||
* sql update���� ������Ӱ������ | ||
* @param cmdtext sql��� | ||
* @param values ���� | ||
* @param up �û��ϴ����� | ||
* sql update Method returns the number of affected rows | ||
* @param cmdtext sql | ||
* @param values | ||
* @param up user upload | ||
*/ | ||
@@ -180,3 +180,3 @@ doM(cmdtext, values, up) { | ||
else { | ||
//����Ϊ��ȥ�����һ������ | ||
//remove something | ||
let str = JSON.stringify(results); | ||
@@ -197,3 +197,3 @@ let lendown = str.length; | ||
/** | ||
* ����һ�� ���ز�����к� | ||
* Inserting a row returns the inserted row number | ||
* @param cmdtext | ||
@@ -222,3 +222,3 @@ * @param values | ||
else { | ||
//����Ϊ��ȥ�����һ�� | ||
//remove something | ||
let str = JSON.stringify(results); | ||
@@ -239,5 +239,5 @@ let lendown = str.length; | ||
/** | ||
* �����װ һ����ִ��(һ�㲻�� doT���� ) | ||
* ��Ҫ�Լ��ͷ����� | ||
* �����и��ӵij�����Ҫ�õ� �����һ��ִ�гɹ� ����ʲô��������� ����Ҫ�ع����� | ||
* Transactions are executed piecemeal (it is usually better not to use doT) | ||
* You need to release the connection yourself | ||
* There may be complicated scenarios where the first sentence is successful but what condition has changed and you still need to roll back the transaction | ||
* @param cmdtext | ||
@@ -267,4 +267,4 @@ * @param values | ||
/** | ||
* doget doM����Ҫ�ֶ��ͷ� | ||
* getConnection����Ҫ | ||
* doget doM does not need to be released manually | ||
* getConnection | ||
* */ | ||
@@ -279,3 +279,3 @@ releaseConnection(client) { | ||
/** | ||
* ��ȡ����(�ǵ��ͷ�) | ||
* Get the connection (remember to release it) | ||
* */ | ||
@@ -295,8 +295,8 @@ getConnection() { | ||
/** | ||
* debug���� ��SQL���� ���ߵ�������(�����ø����û������Ŀ¼������) | ||
* ��Ӱ������ ������Ҫ���ٿ�����Ա�����ڿ�����Ŀ¼ | ||
* ����sys_warn ��������ں����� | ||
*Debug function to track online debugging problems with SQL calls (can be set to track users or tables or directories or functions, etc.) | ||
*Opening affects performance Suggestions mainly track the developer and the directory under development | ||
* The table name sys warn follows the function | ||
* @param info log | ||
* @param kind �����ѯlog | ||
* @param up �û��ϴ����� | ||
* @param kind select the log | ||
* @param up user upload | ||
*/ | ||
@@ -326,3 +326,3 @@ _addWarn(info, kind, up) { | ||
try { | ||
//����Ϊ��ȥ�����һ������ | ||
//remove something | ||
let str = JSON.stringify(results); | ||
@@ -363,8 +363,8 @@ results = JSON.parse(str); | ||
/** | ||
* ͳ�ƹ���(����sys_sql ��������ں����� ��Ӱ������) | ||
* @param cmdtext SQL��� | ||
* @param values ֵ | ||
* @param dlong ��ʱ | ||
* @param lendown �����ֽ� | ||
* @param up �û��ϴ����� | ||
* If the table name SYS_SQL is opened after the function, it will affect performance | ||
* @param cmdtext SQL | ||
* @param values | ||
* @param dlong Function Timing | ||
* @param lendown down bytes | ||
* @param up user upload | ||
*/ | ||
@@ -371,0 +371,0 @@ _saveLog(cmdtext, values, dlong, lendown, up) { |
{ | ||
"name": "node-mysql78", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "node-mysql78", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -7,8 +7,8 @@ import UpInfo from "node-upinfo"; | ||
export default class Mysql78 { | ||
_pool: any;//���ӳ� | ||
_host: string;//��������ַ | ||
isLog: boolean;//�Ƿ��ٵ��ü�¼(Ĭ��д��sys_warn�� ��Ӱ������) | ||
isCount: boolean;//�Ƿ���ü���(Ĭ��д��sys_sql�� ��Ӱ������) | ||
_pool: any;//pool | ||
_host: string;// | ||
isLog: boolean;//Whether to trace invocation records (default writing to the sys_warn table affects performance) | ||
isCount: boolean;//Whether or not to call count (default writing to SYS SQL table affects performance) | ||
/* | ||
* ��Сʾ�� | ||
* small | ||
*let config={host:"127.0.0.1",password:"test",database:"testdb"} | ||
@@ -56,6 +56,6 @@ * | ||
/** | ||
* sql get���� | ||
* @param cmdtext sql��� | ||
* @param values ���� | ||
* @param up �û��ϴ�������(��Ҫ������־) | ||
* sql get | ||
* @param cmdtext sql | ||
* @param values | ||
* @param up user upload | ||
*/ | ||
@@ -96,3 +96,3 @@ doGet(cmdtext: string, values: string[], up: UpInfo): Promise<any> { | ||
} | ||
//����Ϊ��ȥ�����һ������ | ||
//remove something | ||
var str = JSON.stringify(back); | ||
@@ -111,9 +111,9 @@ let lendown = str.length; | ||
/** | ||
* ���ز����ɹ� ��ʧ����Ϣ | ||
* @param cmds ��������� | ||
* @param values ������� | ||
* @param errtexts ���������ʾ | ||
* @param logtext log�� | ||
* @param logvalue log�� | ||
* @param up �û��ϴ� | ||
* The transaction returns information about the success or failure of the operation | ||
* @param cmds more sql | ||
* @param values more value | ||
* @param errtexts more err | ||
* @param logtext log | ||
* @param logvalue log | ||
* @param up user upload | ||
*/ | ||
@@ -171,6 +171,6 @@ doT(cmds: string[], values: string[][], errtexts: string[] | ||
/** | ||
* sql update���� ������Ӱ������ | ||
* @param cmdtext sql��� | ||
* @param values ���� | ||
* @param up �û��ϴ����� | ||
* sql update Method returns the number of affected rows | ||
* @param cmdtext sql | ||
* @param values | ||
* @param up user upload | ||
*/ | ||
@@ -199,3 +199,3 @@ doM(cmdtext: string, values: string[], up: UpInfo): Promise<string | number> { | ||
else { | ||
//����Ϊ��ȥ�����һ������ | ||
//remove something | ||
let str = JSON.stringify(results); | ||
@@ -217,3 +217,3 @@ let lendown = str.length; | ||
/** | ||
* ����һ�� ���ز�����к� | ||
* Inserting a row returns the inserted row number | ||
* @param cmdtext | ||
@@ -246,3 +246,3 @@ * @param values | ||
else { | ||
//����Ϊ��ȥ�����һ�� | ||
//remove something | ||
let str = JSON.stringify(results); | ||
@@ -265,5 +265,5 @@ let lendown = str.length; | ||
/** | ||
* �����װ һ����ִ��(һ�㲻�� doT���� ) | ||
* ��Ҫ�Լ��ͷ����� | ||
* �����и��ӵij�����Ҫ�õ� �����һ��ִ�гɹ� ����ʲô��������� ����Ҫ�ع����� | ||
* Transactions are executed piecemeal (it is usually better not to use doT) | ||
* You need to release the connection yourself | ||
* There may be complicated scenarios where the first sentence is successful but what condition has changed and you still need to roll back the transaction | ||
* @param cmdtext | ||
@@ -295,4 +295,4 @@ * @param values | ||
/** | ||
* doget doM����Ҫ�ֶ��ͷ� | ||
* getConnection����Ҫ | ||
* doget doM does not need to be released manually | ||
* getConnection | ||
* */ | ||
@@ -307,3 +307,3 @@ releaseConnection(client:any): Promise<any> { | ||
/** | ||
* ��ȡ����(�ǵ��ͷ�) | ||
* Get the connection (remember to release it) | ||
* */ | ||
@@ -325,8 +325,8 @@ getConnection(): Promise<any> { | ||
/** | ||
* debug���� ��SQL���� ���ߵ�������(�����ø����û������Ŀ¼������) | ||
* ��Ӱ������ ������Ҫ���ٿ�����Ա�����ڿ�����Ŀ¼ | ||
* ����sys_warn ��������ں����� | ||
*Debug function to track online debugging problems with SQL calls (can be set to track users or tables or directories or functions, etc.) | ||
*Opening affects performance Suggestions mainly track the developer and the directory under development | ||
* The table name sys warn follows the function | ||
* @param info log | ||
* @param kind �����ѯlog | ||
* @param up �û��ϴ����� | ||
* @param kind select the log | ||
* @param up user upload | ||
*/ | ||
@@ -357,3 +357,3 @@ _addWarn(info: string, kind: string, up: UpInfo): Promise<any> { | ||
try { | ||
//����Ϊ��ȥ�����һ������ | ||
//remove something | ||
let str = JSON.stringify(results); | ||
@@ -396,8 +396,8 @@ results = JSON.parse(str); | ||
/** | ||
* ͳ�ƹ���(����sys_sql ��������ں����� ��Ӱ������) | ||
* @param cmdtext SQL��� | ||
* @param values ֵ | ||
* @param dlong ��ʱ | ||
* @param lendown �����ֽ� | ||
* @param up �û��ϴ����� | ||
* If the table name SYS_SQL is opened after the function, it will affect performance | ||
* @param cmdtext SQL | ||
* @param values | ||
* @param dlong Function Timing | ||
* @param lendown down bytes | ||
* @param up user upload | ||
*/ | ||
@@ -404,0 +404,0 @@ _saveLog(cmdtext: string, values: string[], dlong: number, lendown: number, up: UpInfo ): Promise<any> { |
Sorry, the diff of this file is not supported yet
68094