File tree Expand file tree Collapse file tree 7 files changed +13
-13
lines changed
ruby/CRUD-examples/delete Expand file tree Collapse file tree 7 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 3
3
# Using the base template, the example code executes a simple delete using named bind variables.
4
4
5
5
require 'oci8'
6
- connectString = ENV [ 'DB_CONNECT' ]
6
+ connectString = ENV [ 'DB_CONNECT' ] # The environment variable for the connect string: DB_CONNECT=user/password@database
7
7
8
8
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
10
10
con = OCI8 . new ( connectString )
11
11
12
12
# Query all rows
Original file line number Diff line number Diff line change 4
4
# The child records are removed, followed by the parent record.
5
5
6
6
require 'oci8'
7
- connectString = ENV [ 'DB_CONNECT' ]
7
+ connectString = ENV [ 'DB_CONNECT' ] # The environment variable for the connect string: DB_CONNECT=user/password@database
8
8
9
9
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
11
11
con = OCI8 . new ( connectString )
12
12
13
13
# Query all rows
Original file line number Diff line number Diff line change 5
5
# to demonstrate foreign key functionality.
6
6
7
7
require 'oci8'
8
- connectString = ENV [ 'DB_CONNECT' ]
8
+ connectString = ENV [ 'DB_CONNECT' ] # The environment variable for the connect string: DB_CONNECT=user/password@database
9
9
10
10
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
12
12
con = OCI8 . new ( connectString )
13
13
14
14
# Query all rows
Original file line number Diff line number Diff line change 4
4
# The child records are removed, followed by the parent record.
5
5
6
6
require 'oci8'
7
- connectString = ENV [ 'DB_CONNECT' ]
7
+ connectString = ENV [ 'DB_CONNECT' ] # The environment variable for the connect string: DB_CONNECT=user/password@database
8
8
9
9
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
11
11
con = OCI8 . new ( connectString )
12
12
13
13
# Query all rows
Original file line number Diff line number Diff line change 7
7
# Using the executemany function an array of starting data is inserted into the table.
8
8
9
9
require 'oci8'
10
- connectString = ENV [ 'DB_CONNECT' ]
10
+ connectString = ENV [ 'DB_CONNECT' ] # The environment variable for the connect string: DB_CONNECT=user/password@database
11
11
con = OCI8 . new ( connectString )
12
12
13
13
# Delete rows
Original file line number Diff line number Diff line change 3
3
# Using the base template, the example code executes a simple delete using named bind variables.
4
4
5
5
require 'oci8'
6
- connectString = ENV [ 'DB_CONNECT' ]
6
+ connectString = ENV [ 'DB_CONNECT' ] # The environment variable for the connect string: DB_CONNECT=user/password@database
7
7
8
8
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
10
10
con = OCI8 . new ( connectString )
11
11
12
12
# Query all rows
Original file line number Diff line number Diff line change 3
3
# The following code is used as the base template for the other examples.
4
4
5
5
require 'oci8'
6
- connectString = ENV [ 'DB_CONNECT' ]
6
+ connectString = ENV [ 'DB_CONNECT' ] # The environment variable for the connect string: DB_CONNECT=user/password@database
7
7
8
8
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
10
10
con = OCI8 . new ( connectString )
11
11
12
12
# Query all rows
You can’t perform that action at this time.
0 commit comments