Differences between revisions 4 and 9 (spanning 5 versions)
Revision 4 as of 2002-07-16 22:12:21
Size: 1221
Editor: pD9EB0524
Comment:
Revision 9 as of 2008-11-15 14:00:08
Size: 1654
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
[[TableOfContents]]
Line 4: Line 3:
== Masthead == = SAP DB (MaxDB) =
Line 6: Line 5:
  URL:: http://www.sapdb.org/   URL for 7.6 and later:: http://www.sdn.sap.com/irj/sdn/maxdb
  URL for 7.5:: (was http://www.mysql.org/products/maxdb/, but is no longer available)
  URL for 7.3 and 7.4:: http://www.sapdb.org/
Line 9: Line 10:

----
Line 19: Line 22:
==== Extensions to DB API ==== === mxODBC ===
Line 21: Line 24:
==== Comments ====   URL:: http://www.egenix.com/products/python/mxODBC/
  Licence:: eGenix.com Commercial License
  Platforms:: Windows, Linux, MacOS X, FreeBSD, Solaris, AIX
  Python versions:: 2.1 - 2.5

SAP DB's native CLI is ODBC compatible and mxODBC can link directly against these libraries on Unix. It also supports the SAPDB ODBC driver on Windows.
Line 33: Line 41:
Line 49: Line 58:
==== Comments ====
----
Line 52: Line 62:
 * a sapdb driver exists for ["PyDO"] (Python Data Objects)
Line 54: Line 63:
== Pros ==

== Cons ==
 * a sapdb driver exists for [[PyDO]] (Python Data Objects)

SAP DB (MaxDB)

URL for 7.6 and later

http://www.sdn.sap.com/irj/sdn/maxdb

URL for 7.5

(was http://www.mysql.org/products/maxdb/, but is no longer available)

URL for 7.3 and 7.4

http://www.sapdb.org/

licence
GPL
platforms
Linux/i386, Solaris, HP-UX, AIX, Dec, Windows


DB API 2.0 Drivers

sapdbapi

URL

http://www.sapdb.org/sap_db_program.htm

licence
LGPL
platforms
see SAP DB
Python versions
1.5.2 - 2.2

mxODBC

URL

http://www.egenix.com/products/python/mxODBC/

Licence
eGenix.com Commercial License
Platforms
Windows, Linux, MacOS X, FreeBSD, Solaris, AIX
Python versions
2.1 - 2.5

SAP DB's native CLI is ODBC compatible and mxODBC can link directly against these libraries on Unix. It also supports the SAPDB ODBC driver on Windows.

Other Drivers

sapdb

URL

http://www.sapdb.org/sap_db_program.htm

licence
LGPL
platforms
see SAP DB
Python versions
1.5.2 - 2.2

Programming Model

cursor = session.sql ("select * from messages")
for msgno, lang, text in cursor:
    print msgno, text

insert = session.prepare ("insert into sometable values (?, ?)")
print insert.getDescription ()
insert.execute (["string", 1])

select = session.prepare ("select * from messages where msgno < :msgno")
cursor = select.execute ([200])
print cursor.next ()
print cursor.relative (100)
print cursor.absolute (4)
print cursor.absolute (-4)


Supported Python Applications

  • a sapdb driver exists for PyDO (Python Data Objects)

SAP DB (last edited 2013-08-11 12:31:35 by MarcAndreLemburg)

Unable to edit the page? See the FrontPage for instructions.