blob: 8067a47c6763d4a24a07ffeb7238e26a9b50672b [file] [log] [blame]
{"version":3,"sources":["webpack:///./src/pages/docs/Connecting to Databases/snowflake.mdx"],"names":["_frontmatter","layoutProps","MDXLayout","DefaultLayout","MDXContent","components","props","mdxType","parentName","isMDXComponent"],"mappings":"wPAQaA,G,UAAe,S,sOAC5B,IAAMC,EAAc,CAClBD,gBAEIE,EAAYC,IACH,SAASC,EAAT,GAGZ,IAFDC,EAEC,EAFDA,WACGC,EACF,8BACD,OAAO,YAACJ,EAAD,eAAeD,EAAiBK,EAAhC,CAAuCD,WAAYA,EAAYE,QAAQ,cAG5E,iBAAQ,CACN,GAAM,aADR,aAGA,4EACF,6BAAGC,WAAW,KAAQ,CAChB,KAAQ,mDADd,wBADE,KAIA,6EACA,uBAAK,gCAAMA,WAAW,OAAU,IAA3B,oGAEL,kMAEA,uBAAK,gCAAMA,WAAW,OAAU,IAA3B,kEAEL,4jB,oOAUJJ,EAAWK,gBAAiB","file":"component---src-pages-docs-connecting-to-databases-snowflake-mdx-7e0073df001e93760bb6.js","sourcesContent":["import * as React from 'react'\n /* @jsx mdx */\nimport { mdx } from '@mdx-js/react';\n/* @jsxRuntime classic */\n\n/* @jsx mdx */\n\nimport DefaultLayout from \"/home/runner/work/superset/superset/docs/node_modules/gatsby-theme-docz/src/base/Layout.js\";\nexport const _frontmatter = {};\nconst layoutProps = {\n _frontmatter\n};\nconst MDXLayout = DefaultLayout;\nexport default function MDXContent({\n components,\n ...props\n}) {\n return <MDXLayout {...layoutProps} {...props} components={components} mdxType=\"MDXLayout\">\n\n\n <h2 {...{\n \"id\": \"snowflake\"\n }}>{`Snowflake`}</h2>\n <p>{`The recommended connector library for Snowflake is\n`}<a parentName=\"p\" {...{\n \"href\": \"https://pypi.org/project/snowflake-sqlalchemy/\"\n }}>{`snowflake-sqlalchemy`}</a>{`.`}</p>\n <p>{`The connection string for Snowflake looks like this:`}</p>\n <pre><code parentName=\"pre\" {...{}}>{`snowflake://{user}:{password}@{account}.{region}/{database}?role={role}&warehouse={warehouse}\n`}</code></pre>\n <p>{`The schema is not necessary in the connection string, as it is defined per table/query. The role and\nwarehouse can be omitted if defaults are defined for the user, i.e.`}</p>\n <pre><code parentName=\"pre\" {...{}}>{`snowflake://{user}:{password}@{account}.{region}/{database}\n`}</code></pre>\n <p>{`Make sure the user has privileges to access and use all required\ndatabases/schemas/tables/views/warehouses, as the Snowflake SQLAlchemy engine does not test for\nuser/role rights during engine creation by default. However, when pressing the “Test Connection”\nbutton in the Create or Edit Database dialog, user/role credentials are validated by passing\n“validate_default_parameters”: True to the connect() method during engine creation. If the user/role\nis not authorized to access the database, an error is recorded in the Superset logs.`}</p>\n\n </MDXLayout>;\n}\n;\nMDXContent.isMDXComponent = true;\n "],"sourceRoot":""}