Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • F FastAPI
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Sitemule
  • Public
  • workshops
  • open source on IBM i
  • FastAPI
  • Wiki
  • Part 3b. Connecting my first service

Part 3b. Connecting my first service · Changes

Page history
Update Part 3b. Connecting my first service authored Oct 30, 2021 by Jens Melgard Churchill's avatar Jens Melgard Churchill
Hide whitespace changes
Inline Side-by-side
Part-3b.-Connecting-my-first-service.md 0 → 100644
View page @ a0dd5c1c
# First thing, last?
So far we have been running opensource on IBM i, now we'll join it to something decidedly _not_ opensource, namely DB2 for i.
Now that we finally have ODBC access for "free", we can use all manner of programming languages to talk to the database we know and love.
For Python to do that, we'll need a few things.
unixODBC (`yum install unixODBC`), or use ACS.
If you plan on doing local development, and I highly recommend that you do!
You'll need to install the ODBC driver IBM ships for your operating system.
_Currently, Win, Mac, Linux and IBM i naturally_
You can download that, from the same place you downloaded ACS, [currently that is here](https://www.ibm.com/support/pages/ibm-i-access-client-solutions), but as you know, it changes...
Finally, we'll need [PyODBC](https://pypi.org/project/pyodbc/) and [IBM_Db](https://pypi.org/project/ibm-db/) `pip install pyodbc, python39-ibm_db` handles that.
For an in-depth guide, [review the documentation](https://ibmi-oss-docs.readthedocs.io/en/latest/odbc/installation.html)
Most of this, is configured on your chroot environment, so we'll just `pip install pyodbc`...
\ No newline at end of file
Clone repository
  • Part 1a. My first service
  • Part 1b. Testing my first service
  • Part 2a. Extending my first service
  • Part 2b. Organise my first service
  • Part 3a. Review my first service
  • Part 3b. Connecting my first service
  • Home