Format Conversion
Générateur d'INSERT SQL depuis CSV
Analyse CSV/Excel-CSV/TSV (détection auto, RFC 4180) et produit des lots INSERT pour MySQL/PostgreSQL/SQLite/SQL Server avec inférence de types et ON CONFLICT/IGNORE
html· Résultat HTMLOuvrir l'outil
Démarrage rapide
Appelez cet outil depuis votre code en trois langages.
cURL
curl -X POST 'https://api.elysiatools.com/fr/api/tools/csv-flavor-to-sql-insert-emitter' \
-H 'Content-Type: application/json' \
-d '{"csvInput":"id,name,amount\n1,Alice,99.50\n2,Bob,","dialect":"postgresql","delimiter":"comma","tableName":"orders","nullStyle":"empty","conflictMode":"none","conflictTarget":"e.g. id (for postgres upsert)","batchSize":100,"multiRow":true,"hasHeader":true,"includeSchema":false}'Référence de l'API
Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
Point d'accès
HTTP
POST https://api.elysiatools.com/fr/api/tools/csv-flavor-to-sql-insert-emitterParamètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| csvInput | textarea | Oui | — |
| dialect | select | Non | — |
| delimiter | select | Non | — |
| tableName | text | Non | — |
| nullStyle | select | Non | — |
| conflictMode |
Intégration MCP
Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Configuration du serveur
Ajoutez ce bloc à la configuration de votre client MCP :
mcp.json
{
"mcpServers": {
"elysiatools-csv-flavor-to-sql-insert-emitter": {
"name": "csv-flavor-to-sql-insert-emitter",
"description": "Analyse CSV/Excel-CSV/TSV (détection auto, RFC 4180) et produit des lots INSERT pour MySQL/PostgreSQL/SQLite/SQL Server avec inférence de types et ON CONFLICT/IGNORE",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=csv-flavor-to-sql-insert-emitter",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Lister les outils disponibles
Après connexion au point d'accès SSE, listez les outils exposés :
tools/list
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Appeler cet outil
Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
tools/call
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "csv-flavor-to-sql-insert-emitter",
"arguments": {
"csvInput": "id,name,amount\n1,Alice,99.50\n2,Bob,",
"dialect": "postgresql",
"delimiter": "comma",
"tableName": "orders",
"nullStyle": "empty",
"conflictMode": "none",
"conflictTarget": "e.g. id (for postgres upsert)",
"batchSize": 100,
"multiRow": true,
"hasHeader": true,
"includeSchema": false
}
}
}