-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
64c2cf2
commit 1a28592
Showing
9 changed files
with
94 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{% extends 'explorer/base.html' %} | ||
{% block sql_explorer_content %} | ||
<div class="container mt-5"> | ||
<div class="pt-3"> | ||
<h4>Upload a file</h4> | ||
<p>Supports .csv, .json, .db, and .sqlite files. JSON files with one JSON document per line are also supported. CSV/JSON data will be parsed and converted to SQLite. SQLite databases must <i>not</i> be password protected.</p> | ||
<p>You can upload a file as a new data source, or append it to an existing uploaded source. When appending, if a table with the same name as the uploaded file already exists, it will be dropped and replaced with the uploaded data.</p> | ||
|
||
<form id="upload-form"> | ||
<div class="form-group"> | ||
<label for="append">Append to existing connection:</label> | ||
<select id="append" name="append" class="form-control"> | ||
<option value="" selected>None</option> | ||
{% for connection in valid_connections %} | ||
<option value="{{ connection.host }}">{{ connection.alias }}</option> | ||
{% endfor %} | ||
</select> | ||
</div> | ||
<div id="drop-area" class="p-3 mb-4 bg-light border rounded" style="cursor: pointer"> | ||
<p class="lead mb-0">Drag and drop, or click to upload .csv, .json, .db, .sqlite.</p> | ||
<input type="file" id="fileElem" style="display:none" accept=".db,.csv,.sqlite,.json"> | ||
<div class="progress mt-3" style="height: 20px;"> | ||
<div id="progress-bar" class="progress-bar" role="progressbar" style="width: 0;" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">0%</div> | ||
</div> | ||
<p id="upload-status" class="mt-2"></p> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters