Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DataSource<T, M, C>

Defines the shape of the state associated with a data source

Type parameters

  • T: string

  • M

  • C

Hierarchy

Index

Properties

adapter

adapter: DataAdapter

A reference to the actual instantiated adapter associated with this data source

  • useful for reaquiring adapter-specific bound actions after deserialization

cache

cache: C

The cache of actual row data from the data source - while the type is allowed to be arbitrary, joining logic may not handle caches not structures as a list of rows well.

id

The unique identifier assigned to this specific data source.

metadata

metadata: M

An arbitrary cache of metadata the data source may cache inside the model; useful for storing things like available fields, schemas, connection data, and more - potentially very useful for deserialization.

type

type: T

A string literal uniquely identifying the data source's type Note: Not currently important, but will be used deserialization of data sources.

Generated using TypeDoc