Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@minatojs/driver-mysql

Package Overview
Dependencies
Maintainers
2
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@minatojs/driver-mysql - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

lib/index.cjs

40

lib/index.d.ts

@@ -1,4 +0,34 @@

import type { Pool, PoolConfig } from 'mysql';
import { Driver, Eval, Selection, z } from 'minato';
import { MySQLBuilder } from './builder';
import { Builder } from '@minatojs/sql-utils';
import { Dict } from 'cosmokit';
import { Field, Model, Selection, Driver, Eval, z } from 'minato';
import { Pool, PoolConfig } from 'mysql';
export const DEFAULT_DATE: Date;
export interface Compat {
maria?: boolean;
maria105?: boolean;
mysql57?: boolean;
}
export class MySQLBuilder extends Builder {
private compat;
protected escapeRegExp: RegExp;
protected escapeMap: {
'\0': string;
'\b': string;
'\t': string;
'\n': string;
'\r': string;
'\u001A': string;
'"': string;
'\'': string;
'\\': string;
};
prequeries: string[];
constructor(tables?: Dict<Model>, compat?: Compat);
escape(value: any, field?: Field): string;
protected jsonQuote(value: string, pure?: boolean): string;
protected createAggr(expr: any, aggr: (value: string) => string, nonaggr?: (value: string) => string, compat?: (value: string) => string): string;
protected groupArray(value: string): string;
protected parseSelection(sel: Selection): string;
toUpdateExpr(item: any, key: string, field?: Field, upsert?: boolean): string;
}
declare module 'mysql' {

@@ -9,3 +39,3 @@ interface UntypedFieldInfo {

}
export declare class MySQLDriver extends Driver<MySQLDriver.Config> {
export class MySQLDriver extends Driver<MySQLDriver.Config> {
static name: string;

@@ -59,3 +89,3 @@ pool: Pool;

}
export declare namespace MySQLDriver {
export namespace MySQLDriver {
interface Config extends PoolConfig {

@@ -62,0 +92,0 @@ }

21

package.json
{
"name": "@minatojs/driver-mysql",
"version": "3.0.0",
"version": "3.0.1",
"description": "MySQL Driver for Minato",
"main": "lib/index.js",
"type": "module",
"main": "lib/index.cjs",
"module": "lib/index.mjs",
"typings": "lib/index.d.ts",
"exports": {
".": {
"import": "./lib/index.mjs",
"require": "./lib/index.cjs",
"types": "./lib/index.d.ts"
},
"./src/*": "./src/*",
"./package.json": "./package.json"
},
"files": [

@@ -29,10 +40,10 @@ "lib",

"peerDependencies": {
"minato": "^3.0.0"
"minato": "^3.0.1"
},
"devDependencies": {
"@minatojs/tests": "^2.0.0",
"@minatojs/tests": "^2.0.1",
"@types/mysql": "^2.15.24"
},
"dependencies": {
"@minatojs/sql-utils": "^5.0.0",
"@minatojs/sql-utils": "^5.0.1",
"@vlasky/mysql": "^2.18.6",

@@ -39,0 +50,0 @@ "cosmokit": "^1.5.2"

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc