Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Add preliminary support for Sql Server #1309

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,463 changes: 1,463 additions & 0 deletions OmniDB/OmniDB_app/include/OmniDatabase/MsSQL.py

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions OmniDB/OmniDB_app/include/OmniDatabase/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
from OmniDB_app.include.OmniDatabase.Oracle import Oracle
from OmniDB_app.include.OmniDatabase.MariaDB import MariaDB
from OmniDB_app.include.OmniDatabase.MySQL import MySQL
from OmniDB_app.include.OmniDatabase.MsSQL import MsSQL

'''
------------------------------------------------------------------------
Expand Down Expand Up @@ -59,3 +60,5 @@ def InstantiateDatabase(p_db_type,
return MySQL(p_server, p_port, p_service, p_user, p_password, p_conn_id, p_alias, p_conn_string, p_parse_conn_string)
if p_db_type == 'sqlite':
return SQLite(p_service, p_conn_id, p_alias, p_foreignkeys)
if p_db_type == 'mssql':
return MsSQL(p_server, p_port, p_service, p_user, p_password, p_conn_id, p_alias, p_conn_string, p_parse_conn_string)
21 changes: 21 additions & 0 deletions OmniDB/OmniDB_app/migrations/0004_3_2_0.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# manually created

from django.db import migrations


def populate_technologies(apps, schema_editor):
Technology = apps.get_model('OmniDB_app', 'Technology')
Technology(name='mssql').save()


class Migration(migrations.Migration):

dependencies = [
('OmniDB_app', '0003_3_1_0'),
]

operations = [
migrations.RunPython(
code=populate_technologies,
)
]
2 changes: 1 addition & 1 deletion OmniDB/OmniDB_app/static/OmniDB_app/css/omnidb.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions OmniDB/OmniDB_app/static/OmniDB_app/images/mssql.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion OmniDB/OmniDB_app/static/OmniDB_app/images/oracle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ var v_createConnTabFunction = function(p_index,p_create_query_tab = true, p_name
}

let v_icon = '<img src="' + v_url_folder + '/static/OmniDB_app/images/' + v_conn.v_db_type;
if (v_conn.v_db_type === 'postgresql' || v_conn.v_db_type === 'oracle'|| v_conn.v_db_type === 'mariadb' || v_conn.v_db_type === 'mysql') {
if (v_conn.v_db_type === 'postgresql' || v_conn.v_db_type === 'oracle'|| v_conn.v_db_type === 'mariadb' || v_conn.v_db_type === 'mysql'|| v_conn.v_db_type === 'mssql') {
v_icon += '.svg"/>';
}
else {
Expand Down
Loading