StiAzureBlobStorageConnector Class

Namespace: Stimulsoft.Base

Inheritance

Inherits from: StiDbNoSqlDataConnector

Methods

Method Returns Description
Get static StiAzureBlobStorageConnector  
GetBlobContentTypeOrDefault string Try to connect to Azure Blob Storage using current connection string, download blob contents and infer type of data stored.
GetBlobNamesList List Retrieve all blob names starting with specified , or all names if no specified.
GetColumns List<StiDataColumnSchema>  
GetContainerNamesList List Retrieve all container names starting with specified , or all names if no specified.
GetDataTable DataTable  
GetSampleConnectionString string  
RetrieveSchema StiDataSchema  
TestConnection StiTestConnectionResult  

Method Details

Get static

Get(connectionString: string): StiAzureBlobStorageConnector

Parameters

  • connectionString (string)

Returns StiAzureBlobStorageConnector


GetBlobContentTypeOrDefault

GetBlobContentTypeOrDefault(): string

Try to connect to Azure Blob Storage using current connection string, download blob contents and infer type of data stored.

Returns string — “Excel”, “JSON” or “XML” if succeeded, or if failed. “CSV” cannot be inferred.


GetBlobNamesList

GetBlobNamesList(prefix: string): List

Retrieve all blob names starting with specified , or all names if no specified.

Parameters

  • prefix (string) — Only names starting with this prefix will be returned.

Returns List


GetColumns

GetColumns(collectionName: string): List<StiDataColumnSchema>

Parameters

  • collectionName (string)

Returns List<StiDataColumnSchema>


GetContainerNamesList

GetContainerNamesList(prefix: string): List

Retrieve all container names starting with specified , or all names if no specified.

Parameters

  • prefix (string) — Only names starting with this prefix will be returned.

Returns List


GetDataTable

GetDataTable(collectionName: string, query: string, index: int?, count: int?): DataTable

Parameters

  • collectionName (string)
  • query (string)
  • index (int?)
  • count (int?)

Returns DataTable


GetSampleConnectionString

GetSampleConnectionString(): string

Returns string


RetrieveSchema

RetrieveSchema(allowException: bool): StiDataSchema

Parameters

  • allowException (bool)

Returns StiDataSchema


TestConnection

TestConnection(): StiTestConnectionResult

Returns StiTestConnectionResult