@singlestore/client
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
125291
1169