Skip to content

Commit 0cb87e4

Browse files
committed
Test case additions and Doc improvements
1 parent a020a27 commit 0cb87e4

16 files changed

+172
-93
lines changed

doc/src/release_notes.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ node-oracledb Release Notes
88
node-oracledb `v6.0.1 <https://github.com/oracle/node-oracledb/compare/v6.0.0...v6.0.1>`__ (DD MON 2023)
99
--------------------------------------------------------------------------------------------------------
1010

11+
#) Allow bind variables to use multi-byte characters. `Issue #1554 <https://github.com/oracle/node-oracledb/issues/1554>`__.
1112

1213
node-oracledb `v6.0.0 <https://github.com/oracle/node-oracledb/compare/v5.5.0...v6.0.0>`__ (24 May 2023)
1314
--------------------------------------------------------------------------------------------------------

doc/src/user_guide/installation.rst

Lines changed: 57 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Oracle Client libraries. The database can be on the same machine as Node.js, or
1010
it can be remote.
1111

1212
Pre-built 'Thick' mode binaries for common architectures (Windows 64-bit, Linux
13-
x86_64, Linux ARM, and macOS Intel) are included in the node-oracledb
13+
x86_64, Linux ARM (aarch64), and macOS Intel) are included in the node-oracledb
1414
installation as a convenience. Thick mode provides some :ref:`additional
1515
functionality <featuresummary>`. To use Thick mode, Oracle Client libraries
1616
version 11.2, or later, need to be manually installed. Node-oracledb Thick
@@ -208,10 +208,10 @@ summary:
208208
- Oracle Client 11.2 can connect to Oracle Database 9.2 or later
209209

210210
Not all features are available in all versions or driver modes. The
211-
node-oracledb attribute :attr:`connection.thin` can be used to see what mode a
212-
connection is in. In the Thick mode, the attribute
213-
:attr:`oracledb.oracleClientVersion` can be used to determine which Oracle
214-
Client version is in use. The attribute
211+
node-oracledb attributes :attr:`oracledb.thin`, :attr:`pool.thin` and
212+
:attr:`connection.thin` can be used to see what mode a connection is in. In the
213+
Thick mode, the attribute :attr:`oracledb.oracleClientVersion` can be used to
214+
determine which Oracle Client version is in use. The attribute
215215
:attr:`connection.oracleServerVersionString` can be used to determine which
216216
Oracle Database version a connection is accessing. These attributes can be
217217
used to adjust application feature usage appropriately. Any attempt to use
@@ -225,9 +225,13 @@ Installation Requirements
225225

226226
To use node-oracledb, you need:
227227

228-
- Node.js 14.6 or later
228+
- Node.js 14.6 or later.
229+
230+
- Access to an Oracle Database either local or remote, on-premises, or in the
231+
Cloud. You will need to know the `database credentials
232+
<https://www.youtube.com/ watch?v=WDJacg0NuLo>`__ and the :ref:`connection
233+
string <connectionstrings>` for the database.
229234

230-
- An Oracle Database either local or remote, on-premises, or in the Cloud.
231235
Installing node-oracledb does not install or create a database.
232236

233237
- Optionally, Oracle Client libraries can be installed to enable the
@@ -251,24 +255,12 @@ To use node-oracledb, you need:
251255
Run ``node -p "process.arch"`` to identify the Node.js architecture so you
252256
can install the appropriate 64-bit or 32-bit Oracle Client libraries.
253257

254-
- You will need to know the `database credentials <https://www.youtube.com/
255-
watch?v=WDJacg0NuLo>`__ and the :ref:`connection string <connectionstrings>`
256-
for the database.
257-
258258
.. _linuxinstall:
259259

260260
Installing Node.js and node-oracledb on Linux
261261
=============================================
262262

263-
This section discusses the Node.js and node-oracledb installation steps on
264-
Linux x86_64 and Linux ARM (aarch64) architectures. The installation steps
265-
vary based on the node-oracledb mode:
266-
267-
- For Thin mode, install :ref:`Node.js <nodelin>` and
268-
:ref:`node-oracledb <nodeoracledblin>`.
269-
- For Thick mode, install :ref:`Node.js <nodelin>`,
270-
:ref:`node-oracledb <nodeoracledblin>`, and
271-
:ref:`Oracle Client <clientlin>`.
263+
Review the :ref:`prerequisites`.
272264

273265
.. _nodelin:
274266

@@ -307,11 +299,10 @@ Install node-oracledb
307299

308300
2. You can now run applications.
309301

310-
Also, you can use the runnable samples available in the ``/examples``
311-
directory by following these steps:
302+
Runnable samples are available from GitHub. To try them follow these steps:
312303

313304
a. Download the `examples <https://github.com/oracle/node-oracledb/tree/
314-
main/examples>`__ from GitHub.
305+
main/examples>`__.
315306

316307
b. Edit ``dbconfig.js`` and set the `database credentials <https://www.
317308
youtube.com/watch?v=WDJacg0NuLo>`__ to your environment, for example::
@@ -331,14 +322,21 @@ Install node-oracledb
331322
in your application, then follow the instructions in the
332323
:ref:`next section <clientlin>`. Otherwise, if you will only ever use Thin
333324
mode, you can optionally minimize the install footprint by removing all the
334-
Thick mode binaries automatically installed with node-oracledb by running
335-
commands like::
325+
Thick mode binaries automatically installed with node-oracledb. To remove
326+
the binaries, run commands like::
336327

337328
cd node_modules/oracledb
338329
npm run prune all
339330

340-
Questions and issues can be posted as `GitHub Issues <https://github.com/
341-
oracle/node-oracledb/issues>`__.
331+
This can be automated with a ``postinstall`` script in your ``package.json``
332+
file::
333+
334+
"scripts": {
335+
"postinstall": "cd node_modules/oracledb && npm run prune all"
336+
},
337+
338+
Questions can be asked as `GitHub Discussions
339+
<https://github.com/oracle/node-oracledb/discussions>`__.
342340

343341
.. _clientlin:
344342

@@ -406,8 +404,6 @@ Follow these steps if your database is on a remote machine and either:
406404
if you are using Ubuntu. Note: you should review Oracle’s supported
407405
distributions before choosing an operating system.
408406

409-
Review the :ref:`prerequisites`.
410-
411407
To use node-oracledb Thick mode with Oracle Instant Client zip files:
412408

413409
1. Download an Oracle 21, 19, 18, 12, or 11.2 "Basic" or "Basic Light" zip
@@ -490,8 +486,6 @@ Follow these steps if your database is on a remote machine and your
490486
Linux distribution uses RPM packages. Also see :ref:`Installing Node.js and
491487
node-oracledb RPMs from yum.oracle.com <instnoderpms>`.
492488

493-
Review the :ref:`prerequisites`.
494-
495489
To use node-oracledb with Oracle Instant Client RPMs:
496490

497491
1. Download an Oracle 21, 19, 18, 12, or 11.2 "Basic" or "Basic Light" RPM
@@ -578,8 +572,6 @@ For easy development, `Oracle Database Free
578572
developed with this database may be immediately used with other editions of the
579573
Oracle Database.
580574

581-
Review the generic :ref:`prerequisites`.
582-
583575
To use node-oracledb with local database or full client:
584576

585577
1. Set required Oracle environment variables, such as ``ORACLE_HOME`` and
@@ -628,13 +620,6 @@ remote database. Alternatively a database can easily be run in Docker or in a
628620
Linux virtual machine using Vagrant. See the `Oracle Database Vagrant projects
629621
<https://github.com/oracle/vagrant-projects/tree/main/ OracleDatabase>`__.
630622

631-
The installation steps vary based on the node-oracledb mode:
632-
633-
- For Thin mode, install :ref:`Node.js <nodeos>` and
634-
:ref:`node-oracledb <nodeoracledbos>`.
635-
- For Thick mode, install :ref:`Node.js <nodeos>`,
636-
:ref:`node-oracledb <nodeoracledbos>`, and
637-
:ref:`Oracle Client <clientos>`.
638623

639624
.. _nodeos:
640625

@@ -660,11 +645,10 @@ Install node-oracledb
660645

661646
2. You can now run applications.
662647

663-
Also, you can use the runnable samples available in the ``/examples`` directory
664-
by following these steps:
648+
Runnable samples are available from GitHub. To try them follow these steps:
665649

666-
a. Download the `examples <https://github.com/oracle/node-oracledb/tree/main/
667-
examples>`__ from GitHub.
650+
a. Download the `examples <https://github.com/oracle/node-oracledb/tree/
651+
main/examples>`__.
668652

669653
b. Edit ``dbconfig.js`` and set the `database credentials <https://www.youtube.
670654
com/watch?v=WDJacg0NuLo>`__ to your environment, for example::
@@ -684,14 +668,21 @@ Install node-oracledb
684668
in your application, then follow the instructions in the
685669
:ref:`next section <clientos>`. Otherwise, if you will only ever use Thin
686670
mode, you can optionally minimize the install footprint by removing all the
687-
Thick mode binaries automatically installed with node-oracledb by running
688-
commands like::
671+
Thick mode binaries automatically installed with node-oracledb. To remove
672+
the binaries, run commands like::
689673

690674
cd node_modules/oracledb
691675
npm run prune all
692676

693-
Questions and issues can be posted as `GitHub Issues <https://github.
694-
com/oracle/node-oracledb/issues>`__.
677+
This can be automated with a ``postinstall`` script in your ``package.json``
678+
file::
679+
680+
"scripts": {
681+
"postinstall": "cd node_modules/oracledb && npm run prune all"
682+
},
683+
684+
Questions can be asked as `GitHub Discussions
685+
<https://github.com/oracle/node-oracledb/discussions>`__.
695686

696687
.. _clientos:
697688

@@ -774,14 +765,6 @@ Installing Node.js and node-oracledb on Microsoft Windows
774765

775766
Review the :ref:`prerequisites`.
776767

777-
The installation steps vary based on the node-oracledb mode:
778-
779-
- For Thin mode, install :ref:`Node.js <nodewin>` and
780-
:ref:`node-oracledb <nodeoracledbwin>`.
781-
- For Thick mode, install :ref:`Node.js <nodewin>`,
782-
:ref:`node-oracledb <nodeoracledbwin>`, and
783-
:ref:`Oracle Client <clientwin>`.
784-
785768
.. _nodewin:
786769

787770
Install Node.js
@@ -810,11 +793,10 @@ Install node-oracledb
810793

811794
3. You can now run applications.
812795

813-
Also, you can use the runnable samples available in the ``/examples`` directory
814-
by following these steps:
796+
Runnable samples are available from GitHub. To try them follow these steps:
815797

816-
a. Download the `examples <https://github.com/oracle/node-oracledb/tree/main/
817-
examples>`__ from GitHub.
798+
a. Download the `examples <https://github.com/oracle/node-oracledb/tree/
799+
main/examples>`__.
818800

819801
b. Edit ``dbconfig.js`` and set the `database credentials <https://www.youtube
820802
.com/watch?v=WDJacg0NuLo>`__ to your environment, for example::
@@ -834,14 +816,21 @@ Install node-oracledb
834816
in your application, then follow the instructions in the
835817
:ref:`next section <clientwin>`. Otherwise, if you will only ever use Thin
836818
mode, you can optionally minimize the install footprint by removing all the
837-
Thick mode binaries automatically installed with node-oracledb by running
838-
commands like::
819+
Thick mode binaries automatically installed with node-oracledb. To remove
820+
the binaries, run commands like::
839821

840822
cd node_modules\oracledb
841823
npm run prune all
842824

843-
Questions and issues can be posted as `GitHub Issues <https://github.com/
844-
oracle/node-oracledb/issues>`__.
825+
This can be automated with a ``postinstall`` script in your ``package.json``
826+
file::
827+
828+
"scripts": {
829+
"postinstall": "cd node_modules/oracledb && npm run prune all"
830+
},
831+
832+
Questions can be asked as `GitHub Discussions
833+
<https://github.com/oracle/node-oracledb/discussions>`__.
845834

846835
.. _clientwin:
847836

@@ -1639,9 +1628,9 @@ If using node-oracledb fails:
16391628
expected version is first in ``PATH`` (on Windows) or ``LD_LIBRARY_PATH``
16401629
(on Linux).
16411630

1642-
Issues and questions about node-oracledb can be posted on
1643-
`GitHub <https://github.com/oracle/node-oracledb/issues>`__ or
1644-
`Slack <https://node-oracledb.slack.com/>`__ (`link to join
1645-
Slack <https://join.slack.com/t/node-oracledb/shared_invite/enQtNDU4Mjc2NzM
1631+
Questions about node-oracledb can be asked as `GitHub Discussions
1632+
<https://github.com/oracle/node-oracledb/discussions>`__ or posted on `Slack
1633+
<https://node-oracledb.slack.com/>`__ (`link to join Slack
1634+
<https://join.slack.com/t/node-oracledb/shared_invite/enQtNDU4Mjc2NzM
16461635
5OTA2LWMzY2ZlZDY5MDdlMGZiMGRkY2IzYjI5OGU4YTEzZWM5YjQ3ODUzMjcxNWQyNzE4MzM5YjN
16471636
kYjVmNDk5OWU5NDM>`__).

0 commit comments

Comments
 (0)