Socket
Socket
Sign inDemoInstall

@types/mysql

Package Overview
Dependencies
2
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.29 to 0.0.30

51

mysql/index.d.ts

@@ -501,1 +501,52 @@ // Type definitions for node-mysql

}
declare const enum FieldType {
DECIMAL = 0x00, // aka DECIMAL (http://dev.mysql.com/doc/refman/5.0/en/precision-math-decimal-changes.html)
TINY = 0x01, // aka TINYINT, 1 byte
SHORT = 0x02, // aka SMALLINT, 2 bytes
LONG = 0x03, // aka INT, 4 bytes
FLOAT = 0x04, // aka FLOAT, 4-8 bytes
DOUBLE = 0x05, // aka DOUBLE, 8 bytes
NULL = 0x06, // NULL (used for prepared statements, I think)
TIMESTAMP = 0x07, // aka TIMESTAMP
LONGLONG = 0x08, // aka BIGINT, 8 bytes
INT24 = 0x09, // aka MEDIUMINT, 3 bytes
DATE = 0x0a, // aka DATE
TIME = 0x0b, // aka TIME
DATETIME = 0x0c, // aka DATETIME
YEAR = 0x0d, // aka YEAR, 1 byte (don't ask)
NEWDATE = 0x0e, // aka ?
VARCHAR = 0x0f, // aka VARCHAR (?)
BIT = 0x10, // aka BIT, 1-8 byte
NEWDECIMAL = 0xf6, // aka DECIMAL
ENUM = 0xf7, // aka ENUM
SET = 0xf8, // aka SET
TINY_BLOB = 0xf9, // aka TINYBLOB, TINYTEXT
MEDIUM_BLOB = 0xfa, // aka MEDIUMBLOB, MEDIUMTEXT
LONG_BLOB = 0xfb, // aka LONGBLOG, LONGTEXT
BLOB = 0xfc, // aka BLOB, TEXT
VAR_STRING = 0xfd, // aka VARCHAR, VARBINARY
STRING = 0xfe, // aka CHAR, BINARY
GEOMETRY = 0xff // aka GEOMETRY
}
interface IFieldInfo {
catalog: string;
db: string;
table: string;
orgTable: string;
name: string;
orgName: string;
charsetNr: number;
length: number;
/**
* @see Types interface
*/
type: FieldType;
flags: number;
decimals: number;
default: any;
zeroFill: boolean;
protocol41: boolean;
}

5

mysql/package.json
{
"name": "@types/mysql",
"version": "0.0.29",
"version": "0.0.30",
"description": "TypeScript definitions for node-mysql",

@@ -16,4 +16,5 @@ "license": "MIT",

},
"peerDependencies": {},
"typings": "index.d.ts",
"typesPublisherContentHash": "99ac931a4655c179274ed9d490a2dc3242652185946025fd12ed4667ae873dd5"
"typesPublisherContentHash": "9a263b69bff17bc026f9a4d757df3890f428112b10572c1cf0d9ee1633cbe5fc"
}

4

mysql/README.md

@@ -11,9 +11,9 @@ # Installation

Additional Details
* Last updated: Mon, 19 Sep 2016 17:28:59 GMT
* Last updated: Wed, 05 Oct 2016 20:53:35 GMT
* File structure: ProperModule
* Library Dependencies: node
* Module Dependencies: stream
* Global values: createConnection, createPool, createPoolCluster, escape, format
* Global values: FieldType, createConnection, createPool, createPoolCluster, escape, format
# Credits
These definitions were written by William Johnston <https://github.com/wjohnsto>.

@@ -19,2 +19,3 @@ {

"globals": [
"FieldType",
"createConnection",

@@ -33,3 +34,3 @@ "createPool",

"hasPackageJson": false,
"contentHash": "99ac931a4655c179274ed9d490a2dc3242652185946025fd12ed4667ae873dd5"
"contentHash": "9a263b69bff17bc026f9a4d757df3890f428112b10572c1cf0d9ee1633cbe5fc"
}
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc