import snowflake from 'snowflake-sdk' ; import { Snowflake } from 'snowflake-promise' ; export const test_snowflake = async ( ) => { /**With promises:  */ const snowflake = new Snowflake ( { account : 'YF83212.europe-west4.gcp' , username : 'PAUSALA' , password : 'Snowflakepausala1984' , database : 'SNOWFLAKE_SAMPLE_DATA' , schema : 'TPCDS_SF100TCL' , warehouse : 'COMPUTE_WH' } ) ; await snowflake . connect ( ) ; const rows = await snowflake . execute ( 'SHOW TABLES IN SCHEMA TPCDS_SF100TCL' ) ; console . log ( rows [ 0 ] ) ; } ;