Giter Site home page Giter Site logo

viscosityna / db-to-quicksql Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 2.0 11 KB

Read metadata from the ORACLE database and return a string with the representation using the Quick SQL syntax.

PLSQL 100.00%
apex quicksql dbtools oracle-database sql-syntax oracle

db-to-quicksql's Introduction

Databaset to QuickSQL

Read metadata from the ORACLE database and return a string with the representation using the Quick SQL syntax.

Installation

  1. Install the types:
$ sqlplus <USER>@ORCLPDB1

SQLcl: Release 17.4.0 Production on Mon Apr 23 11:09:34 2018

Copyright (c) 1982, 2018, Oracle.  All rights reserved.

Connected to:
Oracle Database 12c Standard Edition Release 12.2.0.1.0 - 64bit Production


SQL>@QS_TYPES.SQL

  1. Install the package:
$ sqlplus <USER>@ORCLPDB1

SQLcl: Release 17.4.0 Production on Mon Apr 23 11:09:34 2018

Copyright (c) 1982, 2018, Oracle.  All rights reserved.

Connected to:
Oracle Database 12c Standard Edition Release 12.2.0.1.0 - 64bit Production


SQL>@QS_PARSE_METADATA.sql

Usage

Run this as the OWNER of the objects you want to convert to QuickSQL

DECLARE
    l_quicksql CLOB;
    procedure print_clob( p_clob in clob )
    as
         l_offset number default 1;
    begin
       loop
         exit when l_offset > dbms_lob.getlength(p_clob);
         dbms_output.put( dbms_lob.substr( p_clob, 255, l_offset ) );
         l_offset := l_offset + 255;
       end loop;
       dbms_output.put_line('');
   end;
BEGIN
    l_quicksql := QS_PARSE_METADATA.GET_QS_OUTPUT;
    print_clob(l_clob);
END;

db-to-quicksql's People

Contributors

eacifuentes avatar eaespinoza0 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

jsr4850 yaitcon

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.