You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to solve the problem, VulcanSQL should support connecting to Canner Enterprise named CannerDataSource and query tables / materialized views/views / shared tables from each workspace in Canner Enterprise.
Describe the solution you’d like
According to #168, we should inherit DataSource and create CannerDataSource to implement it.
....exporttypeDataColumn={name: string;type: string};exportinterfaceDataResult{getColumns: ()=>DataColumn[];getData: ()=>Readable;}exportinterfaceExportOptions{// The sql query result to exportsql: string;// The directory to export result to filedirectory: string;// The profile name to select to export dataprofileName: string;// export file format typetype: CacheLayerStoreFormatType|string;}
.....
@VulcanExtension(TYPES.Extension_DataSource,{enforcedId: true})exportabstractclassDataSource<C=any,PROFILE=Record<string,any>>extendsExtensionBase<C>{privateprofiles: Map<string,Profile<PROFILE>>;constructor(
@inject(TYPES.ExtensionConfig)config: C,
@inject(TYPES.ExtensionName)moduleName: string,
@multiInject(TYPES.Profile) @optional()profiles: Profile[]=[]){super(config,moduleName);this.profiles=profiles.reduce((prev,curr)=>prev.set(curr.name,curr),newMap());}abstractexecute(options: ExecuteOptions): Promise<DataResult>;/** * Export query result data to cache file for cache layer loader used */publicexport(options: ExportOptions): Promise<void>{thrownewError(`Export method not implemented`);}
.....}
The text was updated successfully, but these errors were encountered:
What’s the problem you're trying to solve
In order to solve the problem, VulcanSQL should support connecting to Canner Enterprise named
CannerDataSource
and query tables / materialized views/views / shared tables from each workspace in Canner Enterprise.Describe the solution you’d like
According to #168, we should inherit
DataSource
and createCannerDataSource
to implement it.The text was updated successfully, but these errors were encountered: