vanna-ai / vanna

🤖 Chat with your SQL database 📊. Accurate Text-to-SQL Generation via LLMs using RAG 🔄.
https://vanna.ai/docs/
MIT License
9.12k stars 673 forks source link

Have the option to connect to duckdb in read only mode #475

Open mraad opened 1 month ago

mraad commented 1 month ago

Update the connect_to_duckdb function with read_only parameter (as below) This can help in creating RO streamlit apps.

def connect_to_duckdb(self, url: str, init_sql: str = None, read_only: bool = False):