From 85db7c5287ae58efc108263f7a40bdbd02de1a82 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Thu, 21 Jul 2022 10:06:02 +0430 Subject: added docs for the db using schemaspy --- dbdocs/routines/routine.js | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 dbdocs/routines/routine.js (limited to 'dbdocs/routines/routine.js') diff --git a/dbdocs/routines/routine.js b/dbdocs/routines/routine.js new file mode 100644 index 0000000..efd2b21 --- /dev/null +++ b/dbdocs/routines/routine.js @@ -0,0 +1,34 @@ +function enableAnchors() { + anchors.options.visible = 'always'; + anchors.add('h3'); +} + +$(document).ready(function() { + enableAnchors(); + + var table = $('#standard_table').DataTable( { + lengthChange: false, + bSort: false, + bPaginate: false, + autoWidth: true, + buttons: [ ] + } ); + + table.buttons().container() + .appendTo('#standard_table_wrapper .col-sm-6:eq(0)' ); +} ); + +var codeElement = document.getElementById("sql-script-codemirror"); +var editor = null; +if (null != codeElement) { + editor = CodeMirror.fromTextArea(codeElement, { + lineNumbers: true, + mode: 'text/x-sql', + indentWithTabs: true, + smartIndent: true, + lineNumbers: true, + matchBrackets: true, + autofocus: true, + readOnly: true + }); +} -- cgit v1.2.3