{% extends 'explorer/base.html' %} {% block sql_explorer_content %}

{% if object %}Edit{% else %}Create New{% endif %} Connection

{% if not object %}

SQL Explorer supports two connection methods; uploading a file, or configuring a connection to an existing database.

{% endif %} {% if object.is_upload %} The source of this connection is an uploaded file. In all likelihood you should not be editing it. {% endif %} {% if not object and user_uploads_enabled %}

Upload a file

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 not be password protected.

Drag and drop, or click to upload .csv, .json, .db, .sqlite.

0%

{% endif %}

Configure a connection to an existing database.

{% csrf_token %}
{{ form.alias }} Required. How the connection will appear in SQL Explorer.
{{ form.engine }}
{{ form.name }} Required. The name of the database itself.
{{ form.user }}
{{ form.password }}
{{ form.host }} Required.
{{ form.port }} Required.
{{ form.extras }} Optionally provide JSON that will get merged into the final connection object. The result should be a valid Django database connection dictionary. This is somewhat rarely used.
Cancel
{% endblock %}