BGDatabase v.1.7.5 introduced views
and 2 new view relational fields: viewRelationSingle
and viewRelationMultiple
as better alternatives to
manyTablesRelationSingle
and manyTablesRelationMultiple
fields
The view is a virtual table, which does not have its own rows. It contains a set of table references and its own set of fields. Each included table should have the same set of fields (with the same names and types).
View relational fields are the fields, referencing the rows from the view.
They are similar to manyTablesRelationSingle
and manyTablesRelationMultiple
, allowing to reference rows from multiple tables
Internal data format for these fields is compatible, so it's easy to switch to view relational field without losing any data.
The guide below is for manyTablesRelationSingle
->viewRelationSingle
conversion.
The inventory example project uses views and views relational fields