Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add preliminary support for Sql Server
Browse files Browse the repository at this point in the history
optroodt committed Jan 20, 2022
1 parent ac1ae9f commit 36867e3
Showing 16 changed files with 5,439 additions and 4 deletions.
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
@@ -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

'''
------------------------------------------------------------------------
@@ -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
@@ -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 {
Loading
Oops, something went wrong.

0 comments on commit 36867e3

Please sign in to comment.