File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
packages/cubejs-duckdb-driver/src Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,12 @@ export class DuckDBDriver extends BaseDriver implements DriverInterface {
5858 protected async init ( ) : Promise < InitPromise > {
5959 const token = getEnv ( 'duckdbMotherDuckToken' , this . config ) ;
6060
61- const db = new Database ( token ? `md:?motherduck_token=${ token } &custom_user_agent=Cube/${ version } ` : ':memory:' ) ;
61+ const db = new Database (
62+ token ? `md:?motherduck_token=${ token } &custom_user_agent=Cube/${ version } ` : ':memory:' ,
63+ {
64+ custom_user_agent : `Cube/${ version } ` ,
65+ }
66+ ) ;
6267 // Under the hood all methods of Database uses internal default connection, but there is no way to expose it
6368 const defaultConnection = db . connect ( ) ;
6469 const execAsync : ( sql : string , ...params : any [ ] ) => Promise < void > = promisify ( defaultConnection . exec ) . bind ( defaultConnection ) as any ;
You can’t perform that action at this time.
0 commit comments