SQLObject 1.1.3 / 1.2.0 Beta 1 r4477

Оценок пока нет — будьте первым

Описание

SQLObject is a popular Object Relational Manager for providing an object interface to your database, with rows as instances, tables as classes and columns as attributes. SQLObject includes a Python-object-based query language that makes SQL more abstract, and provides substantial database independence for applications. Example Examples are good. Examples give a feel for the aesthetic of the API, which matters to me a great deal. This is just a snippet that creates a simple class that wraps a table: >>> from sqlobject import * >>> >>> sqlhub.processConnection = connectionForURI('sqlite:/:memory:') >>> >>> class Person(SQLObject): ... fname = StringCol() ... mi = StringCol(length=1, default=None) ... lname = StringCol() ... >>> Person.createTable() SQLObject supports most database schemas that you already have, and can also issue the CREATE statement for you (seen in Person.createTable()). Here's how you'd 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 What's New in This Release: [ read full changelog ] · A bug was fixed in SelectResults slicing that prevented you from slicing a slice (for example, my_results[:20][1:5]).

Информация о программе

Скачать

Похожие программы

D
Devrace FIBPlus for Borland InterBase and Firebird 6.0 Delphi/BCB компоненты для прямого доступа к InterBase, Firebird
Подробнее
S
SQLTools 1.4 beta SQLTools это легкий и надежный инструмент для Oracle PL/SQL девелопмента. Он включает в себя редактор, SQL консоль и пару утилит. Вы можете эффективно использовать этот инструмент даже для работы по модемным соединениям - SQLTools оптимизирован для миними
Подробнее