oci8_simple 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +25 -10
- data/VERSION +1 -1
- data/oci8_simple.gemspec +1 -1
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -1,12 +1,14 @@
|
|
1
1
|
= oci8_simple
|
2
|
-
|
3
|
-
This gem installs a bin script called oci8_simple. The script allows you to run single statements against an
|
4
|
-
arbitrary Oracle schema via the command line, utilizing the power of your favorite shell.
|
5
|
-
|
6
2
|
The script uses a simple Ruby client wrapper around the ruby-oci8 gem. The client is intended to be used by simple
|
7
3
|
scripts to aid automation. The code is intentionally light-weight and featureless, with very little startup time.
|
8
4
|
It is not meant to be a Ruby ORM for Oracle - if you want that, look at the OracleEnhancedAdapter.
|
9
5
|
|
6
|
+
The gem includes a few command-line scripts that are useful for scripting purposes:
|
7
|
+
* <code>oci8_simple</code>
|
8
|
+
* a command to run arbitrary SQL
|
9
|
+
* <code>describe </code>
|
10
|
+
* a command to describe a table
|
11
|
+
|
10
12
|
== Prerequisites:
|
11
13
|
* Oracle Instant Client (http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html)
|
12
14
|
* ruby-oci8
|
@@ -32,15 +34,28 @@ an existing file into this directory if you already have one.
|
|
32
34
|
All logging is done to <code>~/.oci8_simple/oci8_simple.log</code>.
|
33
35
|
|
34
36
|
== Shell Examples
|
35
|
-
|
36
|
-
|
37
|
+
This gem installs a bin script called oci8_simple. The script allows you to run single statements against an
|
38
|
+
arbitrary Oracle schema via the command line, utilizing the power of your favorite shell.
|
39
|
+
|
40
|
+
Run a query against development schema
|
41
|
+
oci8_simple "select id, name from flavors"
|
37
42
|
|
38
|
-
Run a query against a different schema
|
39
|
-
|
43
|
+
Run a query against a different schema
|
44
|
+
oci8_simple "select id, name from flavors" int
|
40
45
|
|
41
|
-
Help
|
42
|
-
|
46
|
+
Help
|
47
|
+
oci8_simple --help
|
48
|
+
|
49
|
+
|
50
|
+
The gem installs a bin script called describe. This script shows a simple description of a table, including
|
51
|
+
the column names (sorted), the type and size for each column, and the nullable status of the column.
|
52
|
+
|
53
|
+
Show column information for a table named "holidays"
|
54
|
+
describe holidays
|
43
55
|
|
56
|
+
Help
|
57
|
+
describe --help
|
58
|
+
|
44
59
|
== Code Examples
|
45
60
|
* Initialize a client against the development schema
|
46
61
|
require 'rubygems'
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.1
|
data/oci8_simple.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oci8_simple
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 1
|
10
|
+
version: 0.4.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Billy Reisinger
|