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

@singlestore/client

Package Overview
Dependencies
Maintainers
0
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@singlestore/client - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

6

dist/index.d.ts

@@ -135,3 +135,3 @@ import * as _singlestore_ai from '@singlestore/ai';

drop(): Promise<[ResultSetHeader, mysql2_promise.FieldPacket[]]>;
column(name: Extract<keyof T["columns"], string> | (string & {})): WorkspaceColumn;
column(name: keyof T["columns"] | (string & {})): WorkspaceColumn;
addColumn(schema: WorkspaceColumnSchema): Promise<WorkspaceColumn>;

@@ -202,3 +202,3 @@ dropColumn(name: ({} & string) | Extract<keyof T["columns"], string>): Promise<[ResultSetHeader, mysql2_promise.FieldPacket[]]>;

drop(): Promise<[ResultSetHeader, mysql2_promise.FieldPacket[]]>;
table<U extends Extract<keyof T["tables"], string> | (string & {})>(name: U): WorkspaceTable<T["tables"][U]>;
table<U, K extends keyof T["tables"] | (string & {}) = keyof T["tables"] | (string & {})>(name: K): WorkspaceTable<U extends WorkspaceTableType ? U : T["tables"][K]>;
createTable<T extends WorkspaceTableType>(schema: WorkspaceTableSchema<T>): Promise<WorkspaceTable<T>>;

@@ -226,3 +226,3 @@ dropTable(name: ({} & string) | Extract<keyof T["tables"], string>): Promise<[ResultSetHeader, mysql2_promise.FieldPacket[]]>;

}): Workspace<T>;
database<U extends Extract<keyof T["databases"], string> | (string & {})>(name: U): WorkspaceDatabase<T["databases"][U]>;
database<U, K extends keyof T["databases"] | (string & {}) = keyof T["databases"] | (string & {})>(name: K): WorkspaceDatabase<U extends WorkspaceDatabaseType ? U : T["databases"][K]>;
createDatabase<T extends WorkspaceDatabaseType>(schema: WorkspaceDatabaseSchema<T>): Promise<WorkspaceDatabase<T>>;

@@ -229,0 +229,0 @@ dropDatabase(name: ({} & string) | Extract<keyof T["databases"], string>): Promise<[mysql2.ResultSetHeader, mysql2.FieldPacket[]]>;

@@ -425,3 +425,8 @@ "use strict";

table(name) {
return new WorkspaceTable(this._connection, this.name, name, this._ai);
return new WorkspaceTable(
this._connection,
this.name,
name,
this._ai
);
}

@@ -462,3 +467,8 @@ createTable(schema) {

database(name) {
return new WorkspaceDatabase(this.connection, this.name, name, this._ai);
return new WorkspaceDatabase(
this.connection,
this.name,
name,
this._ai
);
}

@@ -465,0 +475,0 @@ createDatabase(schema) {

{
"name": "@singlestore/client",
"version": "0.0.3",
"version": "0.0.4",
"license": "Apache-2.0",

@@ -5,0 +5,0 @@ "sideEffects": false,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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