New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@malloydata/db-mysql

Package Overview
Dependencies
Maintainers
0
Versions
240
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@malloydata/db-mysql - npm Package Compare versions

Comparing version

to
0.0.239-dev250227145856

4

dist/mysql_connection.d.ts

@@ -1,2 +0,2 @@

import { Connection, MalloyQueryData, PersistSQLResults, PooledConnection, QueryRunStats, RunSQLOptions, StreamingConnection, QueryOptionsReader, SQLSourceDef, TableSourceDef } from '@malloydata/malloy';
import { Connection, MalloyQueryData, PersistSQLResults, PooledConnection, QueryRunStats, RunSQLOptions, StreamingConnection, QueryOptionsReader, SQLSourceDef, TableSourceDef, SQLSourceRequest } from '@malloydata/malloy';
import { BaseConnection } from '@malloydata/malloy/connection';

@@ -32,3 +32,3 @@ import * as MYSQL from 'mysql2/promise';

fetchTableSchema(tableName: string, tablePath: string): Promise<TableSourceDef>;
fetchSelectSchema(sqlRef: SQLSourceDef): Promise<SQLSourceDef>;
fetchSelectSchema(sqlRef: SQLSourceRequest): Promise<SQLSourceDef>;
private schemaFromResult;

@@ -35,0 +35,0 @@ runRawSQL(sql: string, _options?: RunSQLOptions): Promise<MalloyQueryData>;

@@ -150,4 +150,7 @@ "use strict";

const structDef = {
type: 'sql_select',
...sqlRef,
name: sqlRef.name,
dialect: this.dialectName,
fields: [],
name: (0, malloy_1.sqlKey)(sqlRef.connection, sqlRef.selectStr),
};

@@ -154,0 +157,0 @@ const tempTableName = `tmp${(0, crypto_1.randomUUID)()}`.replace(/-/g, '');

@@ -35,8 +35,4 @@ "use strict";

const res = await connection.fetchSchemaForSQLStruct({
name: 'foo',
type: 'sql_select',
selectStr: 'SELECT 1 as one',
connection: 'mysql',
fields: [],
dialect: 'mysql',
}, {});

@@ -43,0 +39,0 @@ expect((_a = res.structDef) === null || _a === void 0 ? void 0 : _a.fields[0].name).toBe('one');

{
"name": "@malloydata/db-mysql",
"version": "0.0.239-dev250226183425",
"version": "0.0.239-dev250227145856",
"license": "MIT",

@@ -25,3 +25,3 @@ "main": "dist/index.js",

"dependencies": {
"@malloydata/malloy": "^0.0.239-dev250226183425",
"@malloydata/malloy": "^0.0.239-dev250227145856",
"@types/node": "^22.7.4",

@@ -28,0 +28,0 @@ "fastestsmallesttextencoderdecoder": "^1.0.22",