@type-bridge/node 1.5.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts
CHANGED
|
@@ -298,6 +298,10 @@ interface NativeMarshalling {
|
|
|
298
298
|
export interface NativeRustDatabase {
|
|
299
299
|
isConnected(): boolean;
|
|
300
300
|
databaseName(): string;
|
|
301
|
+
databaseExists(): boolean;
|
|
302
|
+
createDatabase(): void;
|
|
303
|
+
deleteDatabase(): void;
|
|
304
|
+
resetDatabase(): void;
|
|
301
305
|
transaction(transactionType?: TransactionType): NativeRustTransactionContext;
|
|
302
306
|
entityManagerJson(descriptorJson: string): NativeDynamicEntityManager;
|
|
303
307
|
relationManagerJson(descriptorJson: string): NativeDynamicRelationManager;
|
|
@@ -410,6 +414,10 @@ export declare class RustDatabase {
|
|
|
410
414
|
static connect(native: NativeRuntime, address: string, database: string, options?: RustDatabaseConnectOptions): RustDatabase;
|
|
411
415
|
isConnected(): boolean;
|
|
412
416
|
databaseName(): string;
|
|
417
|
+
databaseExists(): boolean;
|
|
418
|
+
createDatabase(): void;
|
|
419
|
+
deleteDatabase(): void;
|
|
420
|
+
resetDatabase(): void;
|
|
413
421
|
transaction(transactionType?: TransactionType): RustTransactionContext;
|
|
414
422
|
entityManager(descriptor: EntityDescriptor): RustDynamicEntityManager;
|
|
415
423
|
relationManager(descriptor: RelationDescriptor): RustDynamicRelationManager;
|
package/dist/index.js
CHANGED
|
@@ -267,6 +267,18 @@ class RustDatabase {
|
|
|
267
267
|
databaseName() {
|
|
268
268
|
return this.#native.databaseName();
|
|
269
269
|
}
|
|
270
|
+
databaseExists() {
|
|
271
|
+
return this.#native.databaseExists();
|
|
272
|
+
}
|
|
273
|
+
createDatabase() {
|
|
274
|
+
this.#native.createDatabase();
|
|
275
|
+
}
|
|
276
|
+
deleteDatabase() {
|
|
277
|
+
this.#native.deleteDatabase();
|
|
278
|
+
}
|
|
279
|
+
resetDatabase() {
|
|
280
|
+
this.#native.resetDatabase();
|
|
281
|
+
}
|
|
270
282
|
transaction(transactionType = "read") {
|
|
271
283
|
return new RustTransactionContext(this.#native.transaction(transactionType));
|
|
272
284
|
}
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|