@types/mysql
Advanced tools
Comparing version 0.0.29 to 0.0.30
@@ -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; | ||
} |
{ | ||
"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" | ||
} |
@@ -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" | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
20199
491
0