Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
beartools
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
We are now located at https://gitlab.com/uncoedu
You are on a read-only GitLab instance.
Show more breadcrumbs
Zeva Burklow
beartools
Commits
5c027254
Commit
5c027254
authored
3 months ago
by
Zeva Burklow
Browse files
Options
Downloads
Patches
Plain Diff
[docs] Add oracle.factories documentation
parent
47cc024d
No related branches found
Branches containing commit
Tags
v0.1.2
No related merge requests found
Pipeline
#1077
passed
3 months ago
Stage: build
Stage: release
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/api.rst
+12
-0
12 additions, 0 deletions
docs/api.rst
docs/guide.rst
+13
-0
13 additions, 0 deletions
docs/guide.rst
with
25 additions
and
0 deletions
docs/api.rst
+
12
−
0
View file @
5c027254
...
...
@@ -17,3 +17,15 @@ Hash
.. automodule:: beartools.fileio.hash
.. autofunction:: hash_file
Oracle
******
.. automodule:: beartools.oracle
Factories
~~~~~~~~~
.. automodule:: beartools.oracle.factories
.. autofunction:: dict_factory
This diff is collapsed.
Click to expand it.
docs/guide.rst
+
13
−
0
View file @
5c027254
...
...
@@ -22,3 +22,16 @@ Hashing Files
print(hash_file("path/to/file"))
This will output the sha3_512 hash of the specified file. For more info, see the :ref:`API Reference`.
Oracle Factories
~~~~~~~~~~~~~~~~
.. code-block:: python
from beartools.oracle.factories import dict_factory
# Assuming you already have an oracledb or cx_Oracle cursor
cursor.execute(query)
cursor.rowfactory = dict_factory(cursor)
results = cursor.fetchall()
# Results will be a list of dictionaries
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment