-
Notifications
You must be signed in to change notification settings - Fork 0
ISourceWrapper
This interface expose some source related helper methods.
export default interface ISourceWrapper {
sortAsync(source: ISource, sort: string, context: IContext): Promise<ISource>;
filterAsync(
source: ISource,
filter: string,
context: IContext
): Promise<any[]>;
isNullOrEmpty(data: string): boolean;
runSqlAsync(
source: ISource,
sql: string,
context: IContext
): Promise<ISource>;
data(id: SourceId, data: any, options?: ISourceOptions): Data;
new (id: SourceId, data: any, options?: ISourceOptions): ISource;
}-
sortAsync(source,sort,context)
Applysortas SQL order clauses over thesourceand return objects as new array. this method use dbLib for execute query. -
filterAsync(source,filter,context) Apply
filteras SQL where clauses over thesourceand return objects as new array. this method use dbLib for execute query. -
runSqlAsync(source,sql,context) Apply
sqlas SQL query over thesourceand return objects as new array. this method use dbLib for execute query. -
data(id,data,options)
Create Data object from input parameters-
id
Name of new Data object. -
data
Data that present with new Data object. -
options
object of type ISourceOptions, that determine options for new Data object.
-
-
new(id,data,options)
Create ISource object from input parameters-
id
Name of new ISource object. -
data
Data that present with new ISource object. -
options
object of type ISourceOptions, that determine options for new ISource object.
-
Copyright © 2020 Manzoomeh Negaran Co Lts.
Powered by BasisCore
- Home
- IContext
- $bc
- Source
- Options
- ConnectionOptions
- Component
- UserDefinedComponent
- APIComponent
- HTML Components
- SourceBase Components
- Source Components
- Callback Argument
- Enum
- Util