Ferreteria/v0.41/odata: Difference between revisions

From Woozle Writes Code
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
This system is experimental, and replaces/updates the old [[Ferreteria/modules/content|content system]] (which was really part of 0.2 or 0.3).
This system is experimental, and replaces/updates the old [[Ferreteria/modules/content|content system]] (which was really part of 0.2 or 0.3).


==Concepts==
* '''concepts''':
===Node===
** {{l/sub|node}}
* '''table''': {{l/version|sql|node}}
** {{l/sub|leaf}}
 
* '''tables''':
Every '''node'''
** {{l/version|sql|node}}: node index
* is a record in the node table
** {{l/version|sql|node_leaf}}: master node-leaf index
* can have zero or more '''leaf'''s
** {{l/version|sql|node_leaf_text}}: leaf type for handling large strings
** There's generally no point to having zero, but no reason to forbid it.
** {{l/version|sql|node_leaf_time}}: leaf type for handling timestamps
* can have a (node) '''type''' which points to a handler-class
** so that when we're looking at a group of unspecified nodes, we know how to handle each one
===Leaf===
Every '''leaf''':
* has
** a data type
** a name (unique within the node)
** a value
* is like a single field in a single record
===Leaf Type===

Revision as of 21:41, 16 January 2020

This system is experimental, and replaces/updates the old content system (which was really part of 0.2 or 0.3).