2016-01-19 06:31:14 -06:00
|
|
|
##########################################################################
|
|
|
|
#
|
|
|
|
# pgAdmin 4 - PostgreSQL Tools
|
|
|
|
#
|
2018-01-05 04:42:49 -06:00
|
|
|
# Copyright (C) 2013 - 2018, The pgAdmin Development Team
|
2016-01-19 06:31:14 -06:00
|
|
|
# This software is released under the PostgreSQL Licence
|
|
|
|
#
|
|
|
|
##########################################################################
|
|
|
|
|
|
|
|
"""A blueprint module providing utility functions for the application."""
|
|
|
|
|
2016-05-12 22:19:48 -05:00
|
|
|
from flask import url_for
|
2016-01-19 06:31:14 -06:00
|
|
|
from pgadmin.utils import PgAdminModule
|
|
|
|
|
|
|
|
MODULE_NAME = 'sql'
|
|
|
|
|
|
|
|
|
2016-06-21 08:21:06 -05:00
|
|
|
class SQLModule(PgAdminModule):
|
2016-01-19 06:31:14 -06:00
|
|
|
def get_own_javascripts(self):
|
|
|
|
return [{
|
|
|
|
'name': 'pgadmin.browser.object_sql',
|
|
|
|
'path': url_for('sql.static', filename='js/sql'),
|
|
|
|
'when': None
|
2016-06-21 08:21:06 -05:00
|
|
|
}]
|
|
|
|
|
2016-01-19 06:31:14 -06:00
|
|
|
|
|
|
|
# Initialise the module
|
|
|
|
blueprint = SQLModule(MODULE_NAME, __name__, url_prefix='/misc/sql')
|