Removed juusto rps (because I have one)
This commit is contained in:
parent
6379ecdaf5
commit
102963c5b7
933 changed files with 242781 additions and 356 deletions
26
node_modules/mysql/lib/protocol/packets/Field.js
generated
vendored
Normal file
26
node_modules/mysql/lib/protocol/packets/Field.js
generated
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
var Types = require('../constants/types');
|
||||
|
||||
module.exports = Field;
|
||||
function Field(options) {
|
||||
options = options || {};
|
||||
|
||||
this.parser = options.parser;
|
||||
this.packet = options.packet;
|
||||
this.db = options.packet.db;
|
||||
this.table = options.packet.table;
|
||||
this.name = options.packet.name;
|
||||
this.type = Types[options.packet.type];
|
||||
this.length = options.packet.length;
|
||||
}
|
||||
|
||||
Field.prototype.string = function () {
|
||||
return this.parser.parseLengthCodedString();
|
||||
};
|
||||
|
||||
Field.prototype.buffer = function () {
|
||||
return this.parser.parseLengthCodedBuffer();
|
||||
};
|
||||
|
||||
Field.prototype.geometry = function () {
|
||||
return this.parser.parseGeometryValue();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue