prototype. |
---|
connect (config, callback) |
end () |
properties |
---|
ConnectionString
Server
Login
Database
Password
Port
Timeout
|
poolIdleTimeout |
poolSize |
prototype. |
---|
receiveData (data, callback) |
setParseDbResponseResult (parseResult) |
connect (port, host) |
executeQuery (query, callback) |
prototype. |
---|
addHeaderPacket (messageType) |
addData (data) |
addPacketData (data, endian, encoding,typ) |
toBuffer () |
splitPacket (b) |
public |
LoginRequest (username, password, database) |
ExecuteQuery (query) |
prototype. |
---|
parseErrorMessage (data, offset, tokenLen) |
parseInfoMessage (data, offset, tokenLen) |
parseLoginResponse (data,len) |
parseDone (data, offset) |
parseResultSet (data, offset, resultSetCount) |
parseSqlBatchResponse (data,len) |
concatPackets (packetArr) |
parseDbResponse (packetArr) |
prototype. |
---|
parseColMetaData (type, data, offset) |
parseRowData (cols, data, offset) |
properties |
---|
tp
parse function
len int
vlen int
metaLen int
|
prototype. |
parseNvarchar (data, offset, len) |
parseVarchar (data, offset, len) |
parseNull (data, offset, len) |
parseTinyInt (data, offset, len) |
parseBit (data, offset, len) |
parseSmallInt (data, offset, len) |
parseInt (data, offset, len) |
parseSmallDateTime (data, offset, len) |
parseReal (data, offset, len) |
parseMoney (data, offset, len) |
parseSmallMoney (data, offset, len) |
parseDatetime (data, offset, len) |
parseFloat (data, offset, len) |
parseGuid (data, offset, len) |
parseBigInt (data, offset, len) |
parseNint (data, offset, len) |
parseNbit (data, offset, len) |
parseBigNumeric (data, offset, len) |
parseNnumeric (data, offset, len) |
parseNfloat (data, offset, len) |
parseNmoney (data, offset, len) |
parseNdatetime (data, offset, len) |
parseChar (data, offset, len) |
parseBinary (data, offset, len) |
parseVarBinary (data, offset, len) |
parseNchar (data, offset, len) |
parseText (data, offset, len) |
parseNtext (data, offset, len) |
parseImage (data, offset, len) |
parseInfo (data, offset, len) |
parseType (type, data, offset, precision, scale) |
intToHexStr (data, offset, len) |
bigIntBufferToString (buffer) |
Generic resource pool |
---|
Used to reuse or throttle expensive resources such as database connections. |