Pony Object-Relational Mapper
Project description
Pony is an object-relational mapper. The most interesting feature of Pony is its ability to write queries to the database using generator expressions. Pony works with entities which are mapped to a SQL database. Using generator syntax for writing queries allows the user to formulate very eloquent queries. It increases the level of abstraction and allows a programmer to concentrate on the business logic of the application. For this purpose Pony analyzes the abstract syntax tree of a generator and translates it to its SQL equivalent.
Following is an example of a query in Pony:
select(p for p in Product if p.name.startswith(‘A’) and p.cost <= 1000)
Pony translates queries to SQL using a specific database dialect. Currently Pony works with SQLite, MySQL, PostgreSQL and Oracle databases.
The package pony.orm.examples contains several examples. Documenation is available at http://ponyorm.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pony-0.5-beta.tar.gz.
File metadata
- Download URL: pony-0.5-beta.tar.gz
- Upload date:
- Size: 139.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7058d01c9053566062285970ba2bbcbe0c47ed92545e41f1fcb490167652359f
|
|
| MD5 |
070e3f49cf89cb19d16efb264af8ab8b
|
|
| BLAKE2b-256 |
d3f21e4095953703ff473ac3936805ec664918f52e6f1746eff60bdb105bbd85
|