Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Database > Database APIs

    SQLObject 1.4.0

    Download button

    Downloads: 1,366  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.2/5)
    19 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Ian Bicking | More programs
    LGPL / FREE
    May 20th, 2013, 09:40 GMT [view history]
    ROOT / Database / Database APIs

     Read user reviews (0)  Refer to a friend  Subscribe

    SQLObject description

    An Object Relational Manager written in Python

    SQLObject is a popular and open source ORM (Object Relational Manager) that can be used as an object interface to a database, with tables as classes, columns as attributes and rows as instances.

    Example

    >>> from sqlobject import *
    >>>
    >>> sqlhub.processConnection = connectionForURI('sqlite:/:memory:')
    >>>
    >>> class Person(SQLObject):
    ... fname = StringCol()
    ... mi = StringCol(length=1, default=None)
    ... lname = StringCol()
    ...
    >>> Person.createTable()


    Here's how you would use the object:

    >>> p = Person(fname="John", lname="Doe")
    >>> p

    >>> p.fname
    'John'
    >>> p.mi = 'Q'
    >>> p2 = Person.get(1)
    >>> p2

    >>> p is p2
    True



    Product's homepage

    Requirements:

    · Python

    What's New in This Release: [ read full changelog ]

    · PostgresConnection was optimized.
    · SQLObject now uses INSERT...RETURNING id to get the autoincremented ID in one query instead of two (INSERT + SELECT id) (PostgreSQL 8.2 required).
    · SQLObject now generates NCHAR/NVARCHAR and N''-quoted strings for MS SQL.

      


    TAGS:

    Object Relational Manager | object interface | SQL object | ORM | object | relational

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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