diff options
author | terminaldweller <thabogre@gmail.com> | 2022-07-21 05:36:02 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-07-21 05:36:02 +0000 |
commit | 85db7c5287ae58efc108263f7a40bdbd02de1a82 (patch) | |
tree | 8292d90db8999dabc2e3872ea75547cb7fcf0c2d /dbdocs/routines/routine.js | |
parent | changed the max doc size to 40K characters.255 was not enough... (diff) | |
download | mdrtl-85db7c5287ae58efc108263f7a40bdbd02de1a82.tar.gz mdrtl-85db7c5287ae58efc108263f7a40bdbd02de1a82.zip |
added docs for the db using schemaspy
Diffstat (limited to 'dbdocs/routines/routine.js')
-rw-r--r-- | dbdocs/routines/routine.js | 34 |
1 files changed, 34 insertions, 0 deletions
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 + }); +} |