drawdb-io-drawdb

Namespace

drawdb-io-drawdb

Description:
  • Effortlessly design and manage your database schema with drawDB. It's a user-friendly online DBER editor that lets you create diagrams and generate SQL without any hassle, all directly in your browser!

Author:

Methods

(async, static) createDrawdbIoDrawdbInstance(context, body) → {DrawdbIoDrawdb}

Description:
  • Create a new drawDB instance

Example
import { Context } from '@osaas/client-core';
import { createDrawdbIoDrawdbInstance } from '@osaas/client-services';

const ctx = new Context();
const body: DrawdbIoDrawdbConfig = { name: 'myinstance', ... };
const instance = await createDrawdbIoDrawdbInstance(ctx, body);
console.log(instance.url);
Parameters:
Name Type Description
context Context

Open Source Cloud configuration context

body DrawdbIoDrawdbConfig

Service instance configuration

Returns:
  • Service instance
Type
DrawdbIoDrawdb

(async, static) getDrawdbIoDrawdbInstance(context, name) → {DrawdbIoDrawdb}

Description:
  • Get a drawDB instance

Example
import { Context } from '@osaas/client-core';
import { getDrawdbIoDrawdbInstance } from '@osaas/client-services';

const ctx = new Context();
const instance = await getDrawdbIoDrawdbInstance(ctx, 'myinstance');
console.log(instance.url);
Parameters:
Name Type Description
context Context

Open Source Cloud configuration context

name string

Name of the editor to be retrieved

Returns:
  • Service instance
Type
DrawdbIoDrawdb

(async, static) removeDrawdbIoDrawdbInstance(context, name)

Description:
  • Remove a drawDB instance

Parameters:
Name Type Description
context Context

Open Source Cloud configuration context

name string

Name of the editor to be removed