0

I have specified correct database config variable with all the required credentials of my local database that is hosted,but when I am trying to auto generate models for my tables from inspectdb command,I am receiving only SNOW_FLAKE_SAMPLE schema tables into my models file

I tried using options key which is specified on django-snowflake package description but receiving same tables from snowflake_sample_database schema.

These is a problem of snowflake-django package only,because i am able to connect through snowflake.connector

Ps-I have given a read access only and database which is required is only visible on snow flake portal when i am on a worksheet dashboard.

  • hi just to confirm it is picking up the configuration details from the file you think it is picking, can you give wrong userid/password and see if it still works and picks up the sample DB. – Himanshu Kandpal Nov 18 '22 at 14:07
  • @HimanshuKandpal got incorrect username and password error. – yash gupta Nov 19 '22 at 11:04
  • it looks like the confiuration file is the correct file, can you run show schema and see if you are able to see the schema that you want. – Himanshu Kandpal Nov 19 '22 at 17:46
  • @HimanshuKandpal I am able to access database when I am using python-snowflake connector,but I am receiving snowflake_sample_dataset when I am using django-snowflake package. – yash gupta Nov 20 '22 at 19:52

0 Answers0