Skip to content

Commit 03aa994

Browse files
committed
added environment vairable comment
1 parent 048d357 commit 03aa994

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

ruby/CRUD-examples/delete/extra_fun_1.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
# Using the base template, the example code executes a simple delete using named bind variables.
44

55
require 'oci8'
6-
connectString = ENV['DB_CONNECT']
6+
connectString = ENV['DB_CONNECT'] # The environment variable for the connect string: DB_CONNECT=user/password@database
77

88
def get_all_rows(label, data_type = 'people')
9-
connectString = ENV['DB_CONNECT']
9+
connectString = ENV['DB_CONNECT'] # The environment variable for the connect string: DB_CONNECT=user/password@database
1010
con = OCI8.new(connectString)
1111

1212
# Query all rows

ruby/CRUD-examples/delete/extra_fun_2.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
# The child records are removed, followed by the parent record.
55

66
require 'oci8'
7-
connectString = ENV['DB_CONNECT']
7+
connectString = ENV['DB_CONNECT'] # The environment variable for the connect string: DB_CONNECT=user/password@database
88

99
def get_all_rows(label, data_type = 'people')
10-
connectString = ENV['DB_CONNECT']
10+
connectString = ENV['DB_CONNECT'] # The environment variable for the connect string: DB_CONNECT=user/password@database
1111
con = OCI8.new(connectString)
1212

1313
# Query all rows

ruby/CRUD-examples/delete/foreign_keys.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
# to demonstrate foreign key functionality.
66

77
require 'oci8'
8-
connectString = ENV['DB_CONNECT']
8+
connectString = ENV['DB_CONNECT'] # The environment variable for the connect string: DB_CONNECT=user/password@database
99

1010
def get_all_rows(label, data_type = 'people')
11-
connectString = ENV['DB_CONNECT']
11+
connectString = ENV['DB_CONNECT'] # The environment variable for the connect string: DB_CONNECT=user/password@database
1212
con = OCI8.new(connectString)
1313

1414
# Query all rows

ruby/CRUD-examples/delete/handle_pets.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
# The child records are removed, followed by the parent record.
55

66
require 'oci8'
7-
connectString = ENV['DB_CONNECT']
7+
connectString = ENV['DB_CONNECT'] # The environment variable for the connect string: DB_CONNECT=user/password@database
88

99
def get_all_rows(label, data_type = 'people')
10-
connectString = ENV['DB_CONNECT']
10+
connectString = ENV['DB_CONNECT'] # The environment variable for the connect string: DB_CONNECT=user/password@database
1111
con = OCI8.new(connectString)
1212

1313
# Query all rows

ruby/CRUD-examples/delete/reset_data.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# Using the executemany function an array of starting data is inserted into the table.
88

99
require 'oci8'
10-
connectString = ENV['DB_CONNECT']
10+
connectString = ENV['DB_CONNECT'] # The environment variable for the connect string: DB_CONNECT=user/password@database
1111
con = OCI8.new(connectString)
1212

1313
# Delete rows

ruby/CRUD-examples/delete/simple.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
# Using the base template, the example code executes a simple delete using named bind variables.
44

55
require 'oci8'
6-
connectString = ENV['DB_CONNECT']
6+
connectString = ENV['DB_CONNECT'] # The environment variable for the connect string: DB_CONNECT=user/password@database
77

88
def get_all_rows(label, data_type = 'people')
9-
connectString = ENV['DB_CONNECT']
9+
connectString = ENV['DB_CONNECT'] # The environment variable for the connect string: DB_CONNECT=user/password@database
1010
con = OCI8.new(connectString)
1111

1212
# Query all rows

ruby/CRUD-examples/delete/template.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
# The following code is used as the base template for the other examples.
44

55
require 'oci8'
6-
connectString = ENV['DB_CONNECT']
6+
connectString = ENV['DB_CONNECT'] # The environment variable for the connect string: DB_CONNECT=user/password@database
77

88
def get_all_rows(label, data_type = 'people')
9-
connectString = ENV['DB_CONNECT']
9+
connectString = ENV['DB_CONNECT'] # The environment variable for the connect string: DB_CONNECT=user/password@database
1010
con = OCI8.new(connectString)
1111

1212
# Query all rows

0 commit comments

Comments
 (0)