Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| user_guide:howto:poly_db_write [2019/01/25 13:40] – ↷ Page moved from user_guide:poly_db_write to user_guide:howto:poly_db_write oroehrig | user_guide:howto:poly_db_write [2025/02/11 13:15] (current) – paffenholz | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Writing to the database ====== | ====== Writing to the database ====== | ||
| - | This tutorial explains basic write and update access to the polymake database | + | This tutorial explains basic write and update access to the polymake database. See [[polydb_tutorial|here]] for an introduction tutorial on querying the database. |
| + | |||
| + | ===== Caveat: This page ist for an **Old Version** of the polydb extension ===== | ||
| + | |||
| + | We are in the process rewriting this page. Until then, please contact us for help. | ||
| ==== Write access ==== | ==== Write access ==== | ||
| Line 26: | Line 30: | ||
| * '' | * '' | ||
| - | By default, all properties present in your object are copied in the database. For most of them it might not be interesting to filter by, so check out the [[user_guide: | + | By default, all properties present in your object are copied in the database. For most of them it might not be interesting to filter by, so check out the [[user_guide:howto: |
| ==== Type information ==== | ==== Type information ==== | ||
| - | Collections in the database have corresponding '' | + | Collections in the database have corresponding '' |
| There can be more than one type information entry for a collection. This is useful if, for some part of a collection a property should or cannot be computed or stored in the database. E.g., storing all lattice points for the nine-dimensional Fano polytopes is not feasible. | There can be more than one type information entry for a collection. This is useful if, for some part of a collection a property should or cannot be computed or stored in the database. E.g., storing all lattice points for the nine-dimensional Fano polytopes is not feasible. | ||
| Line 41: | Line 45: | ||
| === Adding a new type information entry to your collection === | === Adding a new type information entry to your collection === | ||
| - | To create a new type information entry, write it into a perl hash in the polymake shell, or into a JSON file (See [[devel/ | + | To create a new type information entry, write it into a perl hash in the polymake shell, or into a JSON file (See [[dev_corner: |
| New type information entries are written with the command '' | New type information entries are written with the command '' | ||
| Line 69: | Line 73: | ||
| db_write_collection_info(file=>" | db_write_collection_info(file=>" | ||
| </ | </ | ||
| - | where we read the information from the files '' | + | where we read the information from the files '' |
| Existing entries are updated. With the option '' | Existing entries are updated. With the option '' | ||