| 1 | <h2>Introduction</h2> |
| 2 | <hr /> |
| 3 | <p>UR is a Class Framework and Object/Relational Mapper (ORM) for Perl.</p> |
| 4 | |
| 5 | <p>After installing, run the "ur" command for a list of options.</p> |
| 6 | |
| 7 | <p>As a Class Framework, it starts with the familiar Perl meme of the blessed |
| 8 | hash reference as the basis for object instances, and builds upon that |
| 9 | with a more formal way to describe classes and their properties, object |
| 10 | caching, and metadata about the classes and the ways they connect to each |
| 11 | other.</p> |
| 12 | |
| 13 | <p>As an ORM, it aims to relieve the developer from having to think about the |
| 14 | SQL behind any particular request, instead using the class structure and |
| 15 | its metadata as a guide for where the data will be found. Behind the scenes, |
| 16 | the RDBMS portion can handle JOINs (both INNER and OUTER) representing |
| 17 | inheritance and indirect properties, multi-column primary and foreign keys, |
| 18 | and iterators. It does its best to only query the database for information |
| 19 | you've directly asked for, and to not query the database for something that |
| 20 | has been loaded before. Oracle, SQLite, MySQL and PostgreSQL are all |
| 21 | supported.</p> |
| 22 | |
| 23 | <p>Additionally, UR can use files or collections of files as if they were |
| 24 | tables in a database, as well as internally handling the equivalent of an |
| 25 | SQL join between two or more databases if that's what the query and class |
| 26 | structure indicates.</p> |
| 27 | |
| 28 | <p>UR.pm contains more introductory POD documentation. UR::Manual has a short |
| 29 | list of documentation you're likely to want to see next.</p> |