Looking for the latest version? Download yborm-0.4.0.tar.gz (2.5 MB)
Home
Name Modified Size Downloads / Week Status
Totals: 18 Items   43.7 MB 10
0.4.0 2013-06-18 2 weekly downloads
0.3.4 2013-01-31 4 weekly downloads
0.3.3 2013-01-02 4 weekly downloads
0.3.2 2012-10-01 2 weekly downloads
0.3.1 2012-08-24 3 weekly downloads
0.3.0 2012-07-16 2 weekly downloads
0.2.5 2012-06-28 2 weekly downloads
0.2.4 2012-04-06 1 weekly downloads
README 2012-06-28 4.0 kB 11 weekly downloads
yborm-0.2.3-msvc2010.zip 2012-03-03 20.4 MB 11 weekly downloads
yborm-0.2.3.tgz 2012-03-03 1.6 MB 11 weekly downloads
yborm-0.2.2-msvc2010.zip 2011-12-19 18.7 MB 11 weekly downloads
yborm-0.2.2.tgz 2011-12-19 473.7 kB 11 weekly downloads
yborm-0.2.1.tar.gz 2011-10-19 375.8 kB 11 weekly downloads
yborm-0.2.0.tgz 2011-10-10 374.3 kB 11 weekly downloads
yborm-0.1.2.tar.gz 2011-06-20 379.9 kB 11 weekly downloads
yborm-0.1.1.tar.gz 2011-04-26 732.5 kB 11 weekly downloads
yborm-0.1.0.tar.gz 2011-04-19 727.7 kB 11 weekly downloads
ABOUT YB.ORM tool is developed to simplify writing C++ code dealing with SQL databases. The goal is to provide a convenient interface like SQLAlchemy (Python) or Hibernate (Java). Available ports to Linux and Windows (MinGW, VC). SQL dialects supported: MySQL, Postgres, Oracle, Firebird. You can use YB.ORM with your favorite toolkit: Boost, Qt4, or wxWidgets. Warning! The software is under development, so it may behave unstable. Many interesting features are still to be implemented. Typical usage scenario is the following: - Describe your database schema i.e. the tables with their columns and the relationships between tables in a simple XML-based format. - Optionally, use the SQL DDL generator for initial DDL statements. Perform this step to populate your empty database schema with tables. - Use the code generation tool provided to produce C++ classes for each table. This code hides the details of how objects are being loaded and stored from/to the corresponding database tables, as well it represents the relationships between objects in a convenient way. - Add your application-specific logic to the classes, etc. - Should you make changes to the database schema, you then use the code generation tool to synchronize the schema description with the previously generated C++ classes. - Now you can use these generated classes in cooperation with Session object to automate the following tasks: - query objects from database, - create new objects or - load and modify existing objects and save them to the database, - link and unlink objects to/from each other using relations, - delete objects from the database. This tool employs many ideas explained in the book "Patterns of Enterprise Application Architecture" by Martin Fawler. Such patterns as "Data Mapper", "Unit of Work" etc. Also I was inspired by the power of frameworks like Hibernate (http://www.hibernate.org/) for Java programming language and SQLAlchemy (http://www.sqlalchemy.org/) for Python. Project was once started as part of a billing system for on-line ads at Yandex company (http://www.yandex.com/). YB stands for Yandex.Balance, that was the name for the billing system. Today YB.ORM project is not affiliated with Yandex company. REQUIREMENTS This piece of software is developed entirely in C++ and should be easily portable across different platforms, although the development is done primarily on GNU/Linux, using GNU C++. GNU Autotools are used as building system in Linux, CMake is used in Windows. You can build YB.ORM library against Boost, Qt4, or wxWidgets toolkits, to use their native datatypes, such as strings, datetime, etc. For example, to build it with Boost in Linux, the following prerequisites should be met: - boost-thread >= 1.31.0 - boost-date-time >= 1.31.0 - libxml2 >= 2.6.16 - xsltproc >= 1.1.24 - cppunit >= 1.10.2 (if you're going to run the test suite) - autotools >= 2.61, automake >= 1.10.1 - unixODBC >= 2.2.11 (to make Oracle ODBC driver work under GNU/Linux x86_64 I have used unixODBC = 2.3.0) The library aims to be database independent. At the time of this writing it is tested to work with Oracle, Postgres, MySQL and Firebird via corresponding ODBC drivers. Also, to access some database you will need one of the following: - myodbc >= 3.51.15 (MySQL ODBC driver) - instantclient >= 10.2 (ODBC driver for Oracle) - odbc-postgresql (ODBC driver for Postgres) - OdbcFb >= 2.0 (ODBC driver for Firebird) AUTHORS - Viacheslav Naydenov, vaclav at yandex dot ru - main developer. - Sergey Chmelev, halty at yandex dash team dot ru - early contributor. - SqUe, squarious at gmail dot com - tiodbc code. Also, I would like to appreciate feedback from several students of Moscow State Open University (MSOU): - Nikita Buyvich, buyvich at gmail dot com. - Viacheslav Fedorov, funny dash story at yandex dot ru. - Andrey Skobenkov, andrey dot skobenkov at gmail dot com. Any feedback, patches or comments are welcome! -- Viacheslav Naydenov 07 jun 2012
Source: README, updated 2012-06-28