ibm-db-sa


Nameibm-db-sa JSON
Version 0.4.0 PyPI version JSON
download
home_pagehttp://pypi.python.org/pypi/ibm_db_sa/
SummarySQLAlchemy support for IBM Data Servers
upload_time2023-04-20 11:27:21
maintainer
docs_urlNone
authorIBM Application Development Team
requires_python
licenseApache License 2.0
keywords sqlalchemy database interface ibm data servers db2 informix ids
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            IBM_DB_SA
=========

The IBM_DB_SA adapter provides the Python/SQLAlchemy interface to IBM Data Servers.

Version
--------
0.4.0 (2023/04/20)

Prerequisites
--------------
1. Install Python 2.7 or newer versions except python 3.3 or Jython 2.5.x .
2. SQLAlchemy version between 0.7.3 - 2.0.x.
3. IBM_DB driver and IBM_DB_DBI wrapper 1.0.1 or higher.
```
   Install ibm_db driver with below commands:
	    Linux and Windows: 
	   	   pip install ibm_db
	    Mac:
		   pip install --no-cache-dir ibm_db
```

Install and Configuration
=========================
The IBM_DB_SA Python Egg component (.egg) can be installed using the standard setuptools provided by the Python Easy Install through Python Entreprise 
Application Kit community portal:
  http://peak.telecommunity.com/DevCenter/EasyInstall

Please follow the steps provided to Install "Easy Install" in the link above and follow up with these additional steps to install IBM_DB_SA:

  1. To install IBM_DB_SA from pypi repository(pypi.python.org):
    Windows:
      > pip install ibm_db_sa
    Linux/Unix:
      $ sudo pip install ibm_db_sa
  
  2. To install IBM_DB_SA egg component from the downloaded .egg file
    Windows:
      > easy_install ibm_db_sa-x.x.x-pyx.x.egg
    Linux/Unix:
      $ sudo easy_install ibm_db_sa-x.x.x-pyx.x.egg
  
  3. To install IBM_DB_SA from source
    Standard Python setup should be used::
        python setup.py install

  4. In case you want to control the sqlalchemy version use the following commands
  ```
    Install SQLAlchemy supported version:
       pip install sqlalchemy==1.3.23
       pip install ibm_db_sa
  ```

  5. IBM_DB_SA is now available as part of conda-forge channel.
    Install Instruction from conda-forge channel
  ```
    conda install -c conda-forge ibm_db
    conda install -c conda-forge ibm_db_sa
  ```
  #### PLATFORMS SUPPORTED THROUGH CONDA FORGE ####
    1. WINDOWS
    2. MAC
    4. LINUX

Connecting
----------
A TCP/IP connection can be specified as the following::
```
	from sqlalchemy import create_engine

	e = create_engine("db2+ibm_db://user:pass@host[:port]/database")
```

For a local socket connection, exclude the "host" and "port" portions::

```
	from sqlalchemy import create_engine

	e = create_engine("db2+ibm_db://user:pass@/database")
```

Supported Databases
-------------------
- IBM DB2 Universal Database for Linux/Unix/Windows versions 9.7 onwards 
- IBM Db2 on Cloud
- IBM Db2 on ZOS
- IBM Db2 on Iseries

Note
-------------------------------------------------------------
By default, all tables and schemas stored in a Db2 database are created
using capital letters only.
However, if you have a table name in lowercase letters, you can still reference
it by enclosing the name in single quotes inside double quotes.
For example
```
	if users table is in small letter inside database
	So, you can use single quotes "'users'".
	If you will not use single quotes such as "users", it will
	be refered as "USERS".

	metadata = sqlalchemy.MetaData(schema="schema1")
	table = sqlalchemy.Table("'users'", metadata, autoload_with=engine)

```

Known Limitations in ibm_db_sa adapter for DB2 databases
-------------------------------------------------------------
1) Non-standard SQL queries are not supported. e.g. "SELECT ? FROM TAB1"
2) For updations involving primary/foreign key references, the entries should be made in correct order. Integrity check is always on and thus the primary keys referenced by the foreign keys in the referencing tables should always exist in the parent table.
3) Unique key which contains nullable column not supported
4) UPDATE CASCADE for foreign keys not supported
5) DEFERRABLE INITIALLY deferred not supported
6) Subquery in ON clause of LEFT OUTER JOIN not supported
7) PyODBC and Jython/zxjdbc support is experimental


Credits
-------
ibm_db_sa for SQLAlchemy was first produced by IBM Inc., targeting version 0.4.
The library was ported for version 0.6 and 0.7 by Jaimy Azle.
Port for version 0.8 and modernization of test suite by Mike Bayer.

Contributing to IBM_DB_SA python project
----------------------------------------
See `CONTRIBUTING
<https://github.com/ibmdb/python-ibmdbsa/tree/master/ibm_db_sa/contributing/CONTRIBUTING.md>`_.

```
The developer sign-off should include the reference to the DCO in remarks(example below):
DCO 1.1 Signed-off-by: Random J Developer <random@developer.org>
```


            

Raw data

            {
    "_id": null,
    "home_page": "http://pypi.python.org/pypi/ibm_db_sa/",
    "name": "ibm-db-sa",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "sqlalchemy database interface IBM Data Servers DB2 Informix IDS",
    "author": "IBM Application Development Team",
    "author_email": "opendev@us.ibm.com",
    "download_url": "https://files.pythonhosted.org/packages/9b/27/93659519d3ada28c6c512668feeef754fd4230d88a19820380f718214ab5/ibm_db_sa-0.4.0.tar.gz",
    "platform": "All",
    "description": "IBM_DB_SA\r\n=========\r\n\r\nThe IBM_DB_SA adapter provides the Python/SQLAlchemy interface to IBM Data Servers.\r\n\r\nVersion\r\n--------\r\n0.4.0 (2023/04/20)\r\n\r\nPrerequisites\r\n--------------\r\n1. Install Python 2.7 or newer versions except python 3.3 or Jython 2.5.x .\r\n2. SQLAlchemy version between 0.7.3 - 2.0.x.\r\n3. IBM_DB driver and IBM_DB_DBI wrapper 1.0.1 or higher.\r\n```\r\n   Install ibm_db driver with below commands:\r\n\t    Linux and Windows: \r\n\t   \t   pip install ibm_db\r\n\t    Mac:\r\n\t\t   pip install --no-cache-dir ibm_db\r\n```\r\n\r\nInstall and Configuration\r\n=========================\r\nThe IBM_DB_SA Python Egg component (.egg) can be installed using the standard setuptools provided by the Python Easy Install through Python Entreprise \r\nApplication Kit community portal:\r\n  http://peak.telecommunity.com/DevCenter/EasyInstall\r\n\r\nPlease follow the steps provided to Install \"Easy Install\" in the link above and follow up with these additional steps to install IBM_DB_SA:\r\n\r\n  1. To install IBM_DB_SA from pypi repository(pypi.python.org):\r\n    Windows:\r\n      > pip install ibm_db_sa\r\n    Linux/Unix:\r\n      $ sudo pip install ibm_db_sa\r\n  \r\n  2. To install IBM_DB_SA egg component from the downloaded .egg file\r\n    Windows:\r\n      > easy_install ibm_db_sa-x.x.x-pyx.x.egg\r\n    Linux/Unix:\r\n      $ sudo easy_install ibm_db_sa-x.x.x-pyx.x.egg\r\n  \r\n  3. To install IBM_DB_SA from source\r\n    Standard Python setup should be used::\r\n        python setup.py install\r\n\r\n  4. In case you want to control the sqlalchemy version use the following commands\r\n  ```\r\n    Install SQLAlchemy supported version:\r\n       pip install sqlalchemy==1.3.23\r\n       pip install ibm_db_sa\r\n  ```\r\n\r\n  5. IBM_DB_SA is now available as part of conda-forge channel.\r\n    Install Instruction from conda-forge channel\r\n  ```\r\n    conda install -c conda-forge ibm_db\r\n    conda install -c conda-forge ibm_db_sa\r\n  ```\r\n  #### PLATFORMS SUPPORTED THROUGH CONDA FORGE ####\r\n    1. WINDOWS\r\n    2. MAC\r\n    4. LINUX\r\n\r\nConnecting\r\n----------\r\nA TCP/IP connection can be specified as the following::\r\n```\r\n\tfrom sqlalchemy import create_engine\r\n\r\n\te = create_engine(\"db2+ibm_db://user:pass@host[:port]/database\")\r\n```\r\n\r\nFor a local socket connection, exclude the \"host\" and \"port\" portions::\r\n\r\n```\r\n\tfrom sqlalchemy import create_engine\r\n\r\n\te = create_engine(\"db2+ibm_db://user:pass@/database\")\r\n```\r\n\r\nSupported Databases\r\n-------------------\r\n- IBM DB2 Universal Database for Linux/Unix/Windows versions 9.7 onwards \r\n- IBM Db2 on Cloud\r\n- IBM Db2 on ZOS\r\n- IBM Db2 on Iseries\r\n\r\nNote\r\n-------------------------------------------------------------\r\nBy default, all tables and schemas stored in a Db2 database are created\r\nusing capital letters only.\r\nHowever, if you have a table name in lowercase letters, you can still reference\r\nit by enclosing the name in single quotes inside double quotes.\r\nFor example\r\n```\r\n\tif users table is in small letter inside database\r\n\tSo, you can use single quotes \"'users'\".\r\n\tIf you will not use single quotes such as \"users\", it will\r\n\tbe refered as \"USERS\".\r\n\r\n\tmetadata = sqlalchemy.MetaData(schema=\"schema1\")\r\n\ttable = sqlalchemy.Table(\"'users'\", metadata, autoload_with=engine)\r\n\r\n```\r\n\r\nKnown Limitations in ibm_db_sa adapter for DB2 databases\r\n-------------------------------------------------------------\r\n1) Non-standard SQL queries are not supported. e.g. \"SELECT ? FROM TAB1\"\r\n2) For updations involving primary/foreign key references, the entries should be made in correct order. Integrity check is always on and thus the primary keys referenced by the foreign keys in the referencing tables should always exist in the parent table.\r\n3) Unique key which contains nullable column not supported\r\n4) UPDATE CASCADE for foreign keys not supported\r\n5) DEFERRABLE INITIALLY deferred not supported\r\n6) Subquery in ON clause of LEFT OUTER JOIN not supported\r\n7) PyODBC and Jython/zxjdbc support is experimental\r\n\r\n\r\nCredits\r\n-------\r\nibm_db_sa for SQLAlchemy was first produced by IBM Inc., targeting version 0.4.\r\nThe library was ported for version 0.6 and 0.7 by Jaimy Azle.\r\nPort for version 0.8 and modernization of test suite by Mike Bayer.\r\n\r\nContributing to IBM_DB_SA python project\r\n----------------------------------------\r\nSee `CONTRIBUTING\r\n<https://github.com/ibmdb/python-ibmdbsa/tree/master/ibm_db_sa/contributing/CONTRIBUTING.md>`_.\r\n\r\n```\r\nThe developer sign-off should include the reference to the DCO in remarks(example below):\r\nDCO 1.1 Signed-off-by: Random J Developer <random@developer.org>\r\n```\r\n\r\n",
    "bugtrack_url": null,
    "license": "Apache License 2.0",
    "summary": "SQLAlchemy support for IBM Data Servers",
    "version": "0.4.0",
    "split_keywords": [
        "sqlalchemy",
        "database",
        "interface",
        "ibm",
        "data",
        "servers",
        "db2",
        "informix",
        "ids"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "afaaad674e9e51f1556e45aa397fd01037c813b54c7a52a218994a47157abb93",
                "md5": "469e230d2c158a9284344e5783291f55",
                "sha256": "03cea38a06e41a823d657559bca93ba458382a90f5c4f7d80bb9e2a78234a6d3"
            },
            "downloads": -1,
            "filename": "ibm_db_sa-0.4.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "469e230d2c158a9284344e5783291f55",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 31010,
            "upload_time": "2023-04-20T11:27:18",
            "upload_time_iso_8601": "2023-04-20T11:27:18.303870Z",
            "url": "https://files.pythonhosted.org/packages/af/aa/ad674e9e51f1556e45aa397fd01037c813b54c7a52a218994a47157abb93/ibm_db_sa-0.4.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9b2793659519d3ada28c6c512668feeef754fd4230d88a19820380f718214ab5",
                "md5": "79d4aba8471c380306069b6bb03276c6",
                "sha256": "75d536407e5966f1dc747b6322938c4ad5d63b104edb834d667d03e64efef15b"
            },
            "downloads": -1,
            "filename": "ibm_db_sa-0.4.0.tar.gz",
            "has_sig": false,
            "md5_digest": "79d4aba8471c380306069b6bb03276c6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 32153,
            "upload_time": "2023-04-20T11:27:21",
            "upload_time_iso_8601": "2023-04-20T11:27:21.042115Z",
            "url": "https://files.pythonhosted.org/packages/9b/27/93659519d3ada28c6c512668feeef754fd4230d88a19820380f718214ab5/ibm_db_sa-0.4.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-20 11:27:21",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "ibm-db-sa"
}
        
Elapsed time: 0.06719s