@datastax/astra-db-ts
Advanced tools
Comparing version 0.0.1 to 0.0.2
import { Db } from './db'; | ||
import { HTTPClient } from '../client'; | ||
import { Collection } from "./collection"; | ||
import { CreateCollectionOptions } from "./options"; | ||
export interface ClientOptions { | ||
@@ -28,2 +29,4 @@ applicationToken?: string; | ||
collection(name: string): Promise<Collection>; | ||
createCollection(collectionName: string, options?: CreateCollectionOptions): Promise<any>; | ||
dropCollection(collectionName: string): Promise<import("../client/httpClient").APIResponse>; | ||
/** | ||
@@ -30,0 +33,0 @@ * Connect the MongoClient instance to JSON API (create Namespace automatically when the 'createNamespaceOnConnect' flag is set to true) |
@@ -68,2 +68,8 @@ "use strict"; | ||
} | ||
async createCollection(collectionName, options) { | ||
return await this.db().createCollection(collectionName, options); | ||
} | ||
async dropCollection(collectionName) { | ||
return await this.db().dropCollection(collectionName); | ||
} | ||
/** | ||
@@ -70,0 +76,0 @@ * Connect the MongoClient instance to JSON API (create Namespace automatically when the 'createNamespaceOnConnect' flag is set to true) |
@@ -23,4 +23,2 @@ "use strict"; | ||
// export * as logger from './logger'; | ||
// import { createStargateUri, createAstraUri } from './collections'; | ||
// export { createStargateUri, createAstraUri }; | ||
//# sourceMappingURL=index.js.map |
export declare const LIB_NAME = "@datastax/astra-db-ts"; | ||
export declare const LIB_VERSION = "0.0.1"; | ||
export declare const LIB_VERSION = "0.0.2"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LIB_VERSION = exports.LIB_NAME = void 0; | ||
exports.LIB_NAME = "@datastax/astra-ts-client"; | ||
exports.LIB_VERSION = "0.0.1"; | ||
exports.LIB_NAME = "@datastax/astra-db-ts"; | ||
exports.LIB_VERSION = "0.0.2"; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@datastax/astra-db-ts", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Astra DB TS Client", | ||
@@ -5,0 +5,0 @@ "contributors": [ |
@@ -20,2 +20,3 @@ // Copyright DataStax, Inc. | ||
import {Collection} from "./collection"; | ||
import {CreateCollectionOptions} from "./options"; | ||
@@ -88,2 +89,10 @@ export interface ClientOptions { | ||
async createCollection(collectionName: string, options?: CreateCollectionOptions) { | ||
return await this.db().createCollection(collectionName, options); | ||
} | ||
async dropCollection(collectionName: string,) { | ||
return await this.db().dropCollection(collectionName); | ||
} | ||
/** | ||
@@ -90,0 +99,0 @@ * Connect the MongoClient instance to JSON API (create Namespace automatically when the 'createNamespaceOnConnect' flag is set to true) |
@@ -19,4 +19,1 @@ // Copyright DataStax, Inc. | ||
// export * as logger from './logger'; | ||
// import { createStargateUri, createAstraUri } from './collections'; | ||
// export { createStargateUri, createAstraUri }; |
export const LIB_NAME = "@datastax/astra-db-ts"; | ||
export const LIB_VERSION = "0.0.1"; | ||
export const LIB_VERSION = "0.0.2"; |
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
590308
8071