Skip to content

Add README, query history, editable SQL, and CSV export to SQLquest - #1

Draft
GoodFrogman7 with Copilot wants to merge 2 commits into
mainfrom
copilot/fork-mistraldataquest
Draft

Add README, query history, editable SQL, and CSV export to SQLquest#1
GoodFrogman7 with Copilot wants to merge 2 commits into
mainfrom
copilot/fork-mistraldataquest

Conversation

Copilot AI commented Jun 21, 2026

Copy link
Copy Markdown

Bootstraps the forked repo with a proper README and adds four quality-of-life features to the Streamlit app.

Changes

  • README.md — setup guide covering install, env vars, database options, and project structure; previously absent
  • Query history — each submitted question is appended to st.session_state.query_history; sidebar renders clickable buttons that prefill the input box via st.session_state.prefill_query + st.rerun()
  • Editable SQL — replaces the read-only st.expander with an editable st.text_area + "Run SQL" button so users can tweak AI-generated queries before execution; original SQL executes automatically on first render if unmodified
  • CSV exportst.download_button rendered below the results dataframe; encodes the full result set as UTF-8 CSV
# Editable SQL flow
edited_sql = st.text_area("You can edit the SQL below before running it:", value=sql_query, ...)
run_sql_button = st.button("Run SQL", type="secondary")
sql_to_run = edited_sql if run_sql_button else sql_query
results_df = db.execute_query(sql_to_run)

# CSV export
csv_data = results_df.to_csv(index=False).encode("utf-8")
st.download_button(label="⬇ Download results as CSV", data=csv_data, file_name="query_results.csv", mime="text/csv")
Original prompt

i want to fork my repo but i dont have th efiles locally, then i want add a few features, push those commits so i want you to go to https://github.com/GoodFrogman7/MistralDataQuest anf fork it , should i create a folder on my device to help you out or will you do the needful and get me in the repo so i can start scripting

Created from VS Code.

Copilot AI changed the title [WIP] Fork MistralDataQuest and add features Add README, query history, editable SQL, and CSV export to SQLquest Jun 21, 2026
Copilot AI requested a review from GoodFrogman7 June 21, 2026 23:16
@GoodFrogman7

Copy link
Copy Markdown
Collaborator

@copilot can i add features and push those changes even if im not the author of the project?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants