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.22 to 0.0.23

16

dist/index.d.ts

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

type ColumnName<T extends TableType> = Extract<keyof T["columns"], string>;
declare class Table<T extends TableType = any, U extends AI = AI> {
declare class Table<T extends TableType = TableType, U extends AI = AI> {
private _connection;

@@ -151,3 +151,3 @@ databaseName: string;

static schemaToClauses(schema: TableSchema<any>): string;
static create<T extends TableType = any, U extends AI = AI>(connection: Connection, databaseName: string, schema: TableSchema<T>, ai?: U): Promise<Table<T, U>>;
static create<T extends TableType = TableType, U extends AI = AI>(connection: Connection, databaseName: string, schema: TableSchema<T>, ai?: U): Promise<Table<T, U>>;
static drop(connection: Connection, databaseName: string, name: string): Promise<[ResultSetHeader, mysql2_promise.FieldPacket[]]>;

@@ -219,3 +219,3 @@ showInfo<T extends boolean>(extended?: T): Promise<T extends true ? TableInfoExtended<string> : TableInfo<string>>;

type TableName<T extends DatabaseType> = Extract<keyof T["tables"], string>;
declare class Database<T extends DatabaseType = any, U extends AI = AI> {
declare class Database<T extends DatabaseType = DatabaseType, U extends AI = AI> {
private _connection;

@@ -227,3 +227,3 @@ name: string;

static normalizeInfo<T extends string, U extends boolean>(info: any, extended?: U): U extends true ? DatabaseInfoExtended<T> : DatabaseInfo<T>;
static create<T extends DatabaseType = any, U extends AI = AI>(connection: Connection, schema: DatabaseSchema<T>, workspaceName?: string, ai?: U): Promise<Database<T, U>>;
static create<T extends DatabaseType = DatabaseType, U extends AI = AI>(connection: Connection, schema: DatabaseSchema<T>, workspaceName?: string, ai?: U): Promise<Database<T, U>>;
static drop(connection: Connection, name: string): Promise<[ResultSetHeader, mysql2_promise.FieldPacket[]]>;

@@ -279,3 +279,3 @@ showInfo<T extends boolean>(extended?: T): Promise<T extends true ? DatabaseInfoExtended<string> : DatabaseInfo<string>>;

type DatabaseName<T extends WorkspaceType> = Extract<keyof T["databases"], string>;
declare class Workspace<T extends WorkspaceType = any, U extends AI = AI> {
declare class Workspace<T extends WorkspaceType = WorkspaceType, U extends AI = AI> {
connection: Connection;

@@ -285,3 +285,3 @@ name?: string | undefined;

constructor(connection: Connection, name?: string | undefined, _ai?: U | undefined);
static connect<T extends WorkspaceType = any, U extends AI = AI>({ ai, name, ...config }: ConnectWorkspaceConfig<T, U>): Workspace<T, U>;
static connect<T extends WorkspaceType = WorkspaceType, U extends AI = AI>({ ai, name, ...config }: ConnectWorkspaceConfig<T, U>): Workspace<T, U>;
database<N, K extends DatabaseName<T> | (string & {}) = DatabaseName<T> | (string & {})>(name: K): Database<N extends DatabaseType ? N : T["databases"][K] extends DatabaseType ? T["databases"][K] : DatabaseType, U>;

@@ -298,8 +298,8 @@ createDatabase<T extends DatabaseType>(schema: DatabaseSchema<T>): Promise<Database<T, U>>;

}
declare class SingleStoreClient<T extends AI<any, any> = AI> {
declare class SingleStoreClient<T extends AI = AI> {
private _ai;
constructor(config?: SingleStoreClientConfig<T>);
workspace<U extends WorkspaceType = any>(config: WorkspaceConfig<U, T>): Workspace<U, T>;
workspace<U extends WorkspaceType = WorkspaceType>(config: WorkspaceConfig<U, T>): Workspace<U, T>;
}
export { Column, type ColumnInfo, type ColumnSchema, type ColumnType, type ConnectWorkspaceConfig, Connection, type ConnectionConfig, Database, type DatabaseInfo, type DatabaseInfoExtended, type DatabaseSchema, type DatabaseTablesToRecords, type DatabaseType, QueryBuilder, type QueryBuilderArgs, type QueryFilters, QueryFiltersBuilder, type QueryOptions, QueryOptionsBuilder, type QuerySchema, SingleStoreClient, type SingleStoreClientConfig, Table, type TableInfo, type TableInfoExtended, type TableSchema, type TableType, Workspace, type WorkspaceConfig, type WorkspaceSchema, type WorkspaceType, queryOptionKeys };

@@ -481,3 +481,7 @@ "use strict";

}
static connect({ ai, name, ...config }) {
static connect({
ai,
name,
...config
}) {
const connection = new Connection(config);

@@ -484,0 +488,0 @@ return new _Workspace(connection, name, ai);

{
"name": "@singlestore/client",
"version": "0.0.22",
"version": "0.0.23",
"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