|
Size: 1221
Comment:
|
Size: 1120
Comment: Rearranged to match the new template.
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 2: | Line 2: |
| [[TableOfContents]] | |
| Line 4: | Line 3: |
| == Masthead == | = SAP DB (MaxDB) = |
| Line 9: | Line 8: |
---- |
|
| Line 18: | Line 19: |
==== Extensions to DB API ==== ==== Comments ==== |
|
| Line 33: | Line 30: |
| Line 49: | Line 47: |
| ==== Comments ==== | ---- |
| Line 52: | Line 51: |
| Line 53: | Line 53: |
== Pros == == Cons == |
SAP DB (MaxDB)
- URL
- licence
- GPL
- platforms
- Linux/i386, Solaris, HP-UX, AIX, Dec, Windows
DB API 2.0 Drivers
sapdbapi
- URL
- licence
- LGPL
- platforms
- see SAP DB
- Python versions
- 1.5.2 - 2.2
Other Drivers
sapdb
- URL
- 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)
