Options
All
  • Public
  • Public/Protected
  • All
Menu

In version 10.10.0: removed experimental In version 9.22.0: introduced

Hierarchy

Implements

Index

Constructors

Properties

id: string
structureTypeName: string
structureTypeName: string = "DatabaseConnector$DatabaseConnection"
versionInfo: StructureVersionInfo = ...

Accessors

  • get connectionString(): null | IConstant
  • set connectionString(newValue: null | IConstant): void
  • get connectionStringQualifiedName(): null | string
  • Returns null | string

  • get container(): TContainer
  • get containerAsModule(): Module
  • get databaseType(): string
  • set databaseType(newValue: string): void
  • Returns string

  • Parameters

    • newValue: string

    Returns void

  • get documentation(): string
  • set documentation(newValue: string): void
  • get excluded(): boolean
  • set excluded(newValue: boolean): void
  • In version 9.11.0: added public

    Returns boolean

  • In version 9.11.0: added public

    Parameters

    • newValue: boolean

    Returns void

  • In version 9.3.0: introduced

    Returns ExportLevel

  • In version 9.3.0: introduced

    Parameters

    Returns void

  • get isLoadable(): boolean
  • Whether this unit and all of its children (recursively) can be loaded.

    Returns boolean

  • get isLoaded(): boolean
  • Whether this unit has been completely loaded and does not consist of the unit's interface (which corresponds to the unit being partial).

    Returns boolean

  • get isReadOnly(): boolean
  • Whether this unit and all of its children (recursively) are editable.

    Returns boolean

  • In version 10.0.0: introduced

    Returns null | IDatabaseQuery

  • In version 10.0.0: introduced

    Parameters

    Returns void

  • get lastSelectedQueryQualifiedName(): null | string
  • Returns null | string

  • get model(): TModel
  • get name(): string
  • set name(newValue: string): void
  • get passwordQualifiedName(): null | string
  • Returns null | string

  • get qualifiedName(): null | string
  • Returns the qualified name of this element, or null if this element is not a part of the model, or if it or one of its namespace containers does not have a valid name.

    Returns null | string

  • get unit(): this
  • Unit that owns/contains this thing.

    Returns this

  • get userNameQualifiedName(): null | string
  • Returns null | string

Methods

  • Transforms a IElement interface into a Element class, loading the containing unit if necessary. (Those are technically already the same, but this function makes sure its properties are available.)

    • If invoked without callback, it checks whether the properties are available or it will throw;
    • If invoked with callback, it will load the data from the server if needed, and then invoke the callback.

    Returns DatabaseConnection

  • delete(): void
  • getContainerAs<T>(containerType: any): T
  • Transforms a IElement interface into a Element class, loading the containing unit if necessary. (Those are technically already the same, but this function makes sure its properties are available.)

    • If invoked without callback, it checks whether the properties are available or it will throw;
    • If invoked with callback, it will load the data from the server if needed, and then invoke the callback.

    Parameters

    Returns void

  • Parameters

    • Optional forceRefresh: boolean

    Returns Promise<DatabaseConnection>

  • Renders the structure as plain JSON (without observables magic). This is intended for debugging and development convenience. Note that the resulting object is not of the interface type corresponding to this structure.

    Returns IAbstractElementJson

  • traverse(visit: (structure: IStructure) => void): void
  • Traverses this structure by calling the provided visitor function on itself and all the structures contained (as part) by it, in depth-first order, and it returns synchronously after that.

    Parameters

    Returns void

  • traverseFind<T>(visit: (structure: IStructure) => T): null | T
  • traversePublicParts(visit: (structure: IStructure) => void): void
  • Creates a new DatabaseConnection unit in the SDK and on the server. Expects one argument, the projects.IFolderBase in which this unit is contained.

    Parameters

    Returns DatabaseConnection

Generated using TypeDoc