Project

orasaurus

0.0
No commit activity in last 3 years
No release in over 3 years
A simple toolset for making it easier to build Oracle databases.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

 Project Readme

Orasaurus

A super simple framework for building Oracle databases.

Orasaurus is a powerful SQL*Plus script generator.

Requirements

To get the most out of the generated scripts, you should have SQL*plus installed and configured for the command-line. Instructions.

Usage

Install the gem

gem install orasaurus

From the command-line, navigate to the directory that contains your application, then run the following command.

orasaurus generate [script_type]

When you run the generator, Orasaurus, examines all directories looking for files with the following extensions: .pkg .pks .pkb .sql .trg .prc. fnc .vw. Each of the buildable files is added to a build script that is placed in each directory. These scripts can be generated over and over as you develop.

There are two kinds of script_types: build and teardown. Build scripts are sql*plus scripts that run the contents of each buildable file into sql*plus. The teardown scripts attempts to reverse the build scripts by dynamically creating scripts to drop the database objects (this really only works if your filenames are database object names).

If you choose to order your build scripts using sql, you must name your files to match the database object that the files contain. For instance, if you have a table called notes, the DDL for that table should be in a file titled "notes.some_buildable_extension".

You can also use the underlying code,as you see fit.

There is command-line help, as well: orasaurus help