{"id":51328455,"url":"https://github.com/bashizip/dbchat","last_synced_at":"2026-07-01T21:00:14.369Z","repository":{"id":368612941,"uuid":"1285968064","full_name":"bashizip/dbchat","owner":"bashizip","description":null,"archived":false,"fork":false,"pushed_at":"2026-07-01T11:35:47.000Z","size":58,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-01T12:23:54.433Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bashizip.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-07-01T10:09:07.000Z","updated_at":"2026-07-01T11:34:36.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/bashizip/dbchat","commit_stats":null,"previous_names":["bashizip/dbchat"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/bashizip/dbchat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashizip%2Fdbchat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashizip%2Fdbchat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashizip%2Fdbchat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashizip%2Fdbchat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bashizip","download_url":"https://codeload.github.com/bashizip/dbchat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashizip%2Fdbchat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35022607,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-01T02:00:05.325Z","response_time":130,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-07-01T21:00:12.706Z","updated_at":"2026-07-01T21:00:14.333Z","avatar_url":"https://github.com/bashizip.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dbchat\n\nChattez avec votre base de données en langage naturel.\n\n```\ndbchat postgres://user:pass@localhost/mydb\ndbchat\u003e \"donne-moi les 5 derniers clients\"\n```\n\n## Base de test (Docker)\n\n```bash\ncd test-db \u0026\u0026 docker compose up -d\n```\n\nConnexion :\n```bash\ndbchat mysql://dbchat:dbchat@localhost:3306/boutique\n```\n\nDocumentation complète du schéma et exemples → [`test-db/README.md`](test-db/README.md)\n\n## Installation\n\n### Via curl (recommandé)\n\n```bash\ncurl -sSfL https://raw.githubusercontent.com/bashizip/dbchat/main/scripts/install.sh | bash\n```\n\nInstallation dans un répertoire personnalisé :\n\n```bash\ncurl -sSfL https://raw.githubusercontent.com/bashizip/dbchat/main/scripts/install.sh | bash -s -- latest ~/.local/bin\n```\n\n### Via cargo\n\n```bash\ncargo install --path dbchat-cli\n```\n\n## Utilisation\n\n```bash\n# Connexion + mode interactif\ndbchat postgres://user:pass@localhost/mydb\ndbchat mysql://user:pass@localhost:3306/mydb\ndbchat sqlite:///data/mydb.db\n\n# One-shot\ndbchat postgres://... -q \"quel est le CA total ?\"\ndbchat postgres://... -q \"top 10 produits\" -f json\n\n# Avec surcharge du modèle/provider\ndbchat postgres://... --provider anthropic --model claude-3-haiku\n```\n\n## Commandes interactives\n\n| Commande | Description |\n|----------|-------------|\n| `votre question` | Question en langage naturel |\n| `/tables` | Liste les tables |\n| `/schema` | Schéma détaillé (colonnes, types, clés) |\n| `/context` | Contexte envoyé au LLM |\n| `/verbose` | Active/désactive le mode verbose |\n| `/history` | Historique des questions |\n| `/config` | Configuration courante |\n| `/refresh` | Re-scanne le schéma |\n| `/clear` | Efface l'écran |\n| `/exit` | Quitte |\n\n## Configuration\n\nFichier : `~/.config/dbchat/config.toml`\n\n```toml\n[llm]\nprovider = \"openai\"            # openai | anthropic | ollama\nmodel = \"gpt-4o-mini\"\napi_key = \"sk-...\"             # ou via OPENAI_API_KEY\n\n[db]\nmax_connections = 5\nquery_timeout_secs = 30\nread_only = true\nsafe_mode = true\n\n[display]\nlocale = \"fr\"                  # fr | en (auto-détecté via LANG)\nformat = \"table\"               # table | json | csv\nshow_sql = true\nverbose = false\n```\n\n```bash\ndbchat config init    # Crée la config par défaut\ndbchat config show    # Affiche la config\n```\n\n## Options CLI\n\n```\n  -q, --query \u003cQUERY\u003e        Mode one-shot\n  -f, --format \u003cFORMAT\u003e      table, json, csv\n  -v, --verbose              Mode verbose\n      --model \u003cMODEL\u003e        Surcouche du modèle\n      --provider \u003cPROVIDER\u003e  Surcouche du provider\n      --read-only            Bloque les requêtes destructives\n      --no-color             Désactive les couleurs\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbashizip%2Fdbchat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbashizip%2Fdbchat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbashizip%2Fdbchat/lists"}