text-document-common 1.4.0

Shared entities, database, events, and undo/redo infrastructure for text-document
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::resource_repository::{ResourceTable, ResourceTableRO};
use crate::entities::*;
use crate::impl_leaf_entity_table;

impl_leaf_entity_table! {
    entity: Resource,
    entity_name: "resource",
    store_field: resources,
    table_trait: ResourceTable,
    table_ro_trait: ResourceTableRO,
    table_struct: ResourceHashMapTable,
    table_ro_struct: ResourceHashMapTableRO,
    backward_junctions: [
        (jn_resource_from_document_resources, "resource_from_document_resources_junction")
    ],
}