The requested page is not available for the requested platform. You are viewing the content for Default platform.

SqlDataSource Class

An SQL data source that provides data for the dashboard.

Declaration

export class SqlDataSource extends DataSource

constructor

Initializes a new instance of the SqlDataSource class.

Declaration

constructor(dataSourceJSON?: any, serializer?: DevExpress.Analytics.Utils.ModelSerializer)

Optional Parameters

Name Type Default Description
dataSourceJSON any null

A JSON object used for dashboard deserialization. Do not pass this parameter directly.

serializer ModelSerializer null

An object used for dashboard deserialization. Do not pass this parameter directly.

Properties

connection Property

Declaration

connection: SqlConnection

Property Value

Type Description
SqlConnection

queries Property

Declaration

queries: ko.ObservableArray<DevExpress.Analytics.Data.Utils.ISqlQueryViewModel>

Property Value

Type Description
ko.ObservableArray<ISqlQueryViewModel>

Methods

getDisplayNamePrefix Method

Declaration

getDisplayNamePrefix(): string

Returns

Type Description
string

getInfo Method

For internal use.

Declaration

getInfo(): DevExpress.Analytics.Utils.ISerializationInfoArray

Returns

Type Description
ISerializationInfoArray

An array of objects that provide serialization info.