Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Database > Administrative frontents

    pg/python 1.0

    Download button

    Downloads: 740  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.6/5)
    18 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    pg/python project | More programs
    BSD License / FREE
    June 1st, 2008, 19:16 GMT
    ROOT / Database / Administrative frontents

     Read user reviews (0)  Refer to a friend  Subscribe

    pg/python description

    pg/python is an open source project working toward the improvement of Python interfaces to PostgreSQL.

    pg/python is an open source project working toward the improvement of Python interfaces to PostgreSQL.

    Quick start:

    Fetch and Install pg_proboscis

    easy_install pg_proboscis

    Connect to a database with the frontend

    import postgresql.interface.proboscis.prime as pq
    Con = pq.Connector(
    user = 'root',
    host = 'localhost',
    port = 5432,
    ssl = True, # Optional. Only set it to True if you want it.
    database = 'pgsql',
    )
    # This creates a Connection *class*, it still needs to be instantiated.
    C = Con()
    C


    # Let's query the database; your results may vary.
    Q = C.Query("SELECT * FROM pg_proc WHERE proname = $1")
    P = Q('byteain')
    for x in P: print x
    ('byteain'::name, '11'::oid, '1'::int4, '12'::oid, False, False, True, False,
    'i'::char, '1'::int2, '17'::oid, '2275'::oidvector, None, 'byteain'::text,
    '-'::bytea, '{=X/pgsql}'::_aclitem)
    print type(x)
    (proname name, pronamespace oid, proowner int4, prolang oid, proisagg bool,
    prosecdef bool, proisstrict bool, proretset bool, provolatile char, pronargs
    int2, prorettype oid, proargtypes oidvector, proargnames _text, prosrc text,
    probin bytea, proacl _aclitem,)

    print repr(x["proname"])
    'byteain'::name
    print repr(x[0])
    'byteain'::name

    for y in x: print repr(y)

    'byteain'::name
    '11'::oid
    '1'::int4
    '12'::oid
    False
    False
    True
    False
    'i'::char
    '1'::int2
    '17'::oid
    '2275'::oidvector
    None
    'byteain'::text
    '-'::bytea
    '{=X/pgsql}'::_aclitem

    print x["proacl"][0]
    =X/pgsql

    Please be sure to see the documentation for more details.

    What's New in This Release:

    · The API was stabilized.
    · Many bugs were fixed and many features were completed.



    Product's homepage

      


    TAGS:

    PostgreSQL interface | database frontend | Python interface | PostgreSQL | database | Python

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM