kristijanhusak / vim-dadbod-ui

Simple UI for https://github.com/tpope/vim-dadbod
MIT License
1.54k stars 94 forks source link

feat(oracle): provide toggle layout functionality #239

Open nlinaje opened 6 months ago

nlinaje commented 6 months ago

This is a PoC to check how to add the toggle layout functionality for oracle databases.

In schemas.vim: New variable created in "s:oracle_toggle_layout_query" which contains a PL/SQL script to read row by row from the database and then put the "column_name : value". The PL/SQL procedure is called: print_cols_as_rows

Changes in "s:oracle":

In dbout.vim: In case the filetype is plsql, there are many substitutions to make. The main steps are:

The content variable is constructed as:

Hope that other people can check this before merging it to master.