mysql2-core 0.3.8 → 0.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/metadata.ts CHANGED
@@ -13,7 +13,7 @@ export interface Executor {
13
13
  executeBatch(statements: Statement[], firstSuccess?: boolean, ctx?: any): Promise<number>
14
14
  query<T>(sql: string, args?: any[], m?: StringMap, bools?: Attribute[], ctx?: any): Promise<T[]>
15
15
  queryOne<T>(sql: string, args?: any[], m?: StringMap, bools?: Attribute[], ctx?: any): Promise<T | null>
16
- executeScalar<T>(sql: string, args?: any[], ctx?: any): Promise<T>
16
+ executeScalar<T>(sql: string, args?: any[], ctx?: any): Promise<T | null>
17
17
  count(sql: string, args?: any[], ctx?: any): Promise<number>
18
18
  }
19
19
  export interface Transaction extends Executor {
@@ -23,27 +23,7 @@ export interface Transaction extends Executor {
23
23
  export interface DB extends Executor {
24
24
  beginTransaction(): Promise<Transaction>
25
25
  }
26
- export type DataType =
27
- | "ObjectId"
28
- | "date"
29
- | "datetime"
30
- | "time"
31
- | "boolean"
32
- | "number"
33
- | "integer"
34
- | "string"
35
- | "text"
36
- | "object"
37
- | "array"
38
- | "binary"
39
- | "primitives"
40
- | "booleans"
41
- | "numbers"
42
- | "integers"
43
- | "strings"
44
- | "dates"
45
- | "datetimes"
46
- | "times"
26
+ export type DataType = "ObjectId" | "date" | "datetime" | "time" | "boolean" | "number" | "integer" | "string" | "text" | "object" | "array" | "binary" | "primitives" | "booleans" | "numbers" | "integers" | "strings" | "dates" | "datetimes" | "times"
47
27
 
48
28
  export interface Attribute {
49
29
  name?: string