Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 394722 Details for
Bug 462484
dev-python/fdb-1.4.3 - Set of Firebird RDBMS bindings for python (New package)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Python script to check FDB installation
checkfdb.py (text/plain), 776 bytes, created by
Vincent Hardy
on 2015-01-23 19:34:28 UTC
(
hide
)
Description:
Python script to check FDB installation
Filename:
MIME Type:
Creator:
Vincent Hardy
Created:
2015-01-23 19:34:28 UTC
Size:
776 bytes
patch
obsolete
>#!/usr/bin/env python3 ># ># vincent.hardy.be@gmail.com ># ># This script checks the proper working of the FDB library ># ># employee.fdb is a demo database supplied with each binary release of Firebird ># (both windows and linux). ># ># Default Windows path : ># C:\Program Files\Firebird\Firebird_2_5\examples\empbuild\EMPLOYEE.FDB ># ># Default linux path : ># /opt/firebird/examples/empbuild/employee.fdb > >import fdb > >con = fdb.connect( > dsn='/var/firebird/employee.fdb', > user='SYSDBA', password='masterkey' > ) > >cur = con.cursor() >cur.execute("Select \ > FIRST_NAME,LAST_NAME,JOB_CODE \ > from EMPLOYEE \ > Where HIRE_DATE<'01-01-1991'") > >for row in cur: ># python 3 > print ('{} {} - {}'.format(row[0], row[1], row[2])) > ># python 2 ># print '%s %s - %s' % (row[0], row[1], row[2]) >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 462484
:
374700
| 394722 |
394724
|
394726
|
394728