reifydb_core/event/
catalog.rs

1// Copyright (c) reifydb.com 2025
2// This file is licensed under the AGPL-3.0-or-later, see license.md file
3
4use crate::{
5	impl_event,
6	interface::{DictionaryDef, NamespaceDef, RingBufferDef, TableDef, ViewDef},
7	row::Row,
8};
9
10pub struct TableInsertedEvent {
11	pub table: TableDef,
12	pub row: Row,
13}
14
15impl_event!(TableInsertedEvent);
16
17pub struct NamespaceCreatedEvent {
18	pub namespace: NamespaceDef,
19}
20
21impl_event!(NamespaceCreatedEvent);
22
23pub struct TableCreatedEvent {
24	pub table: TableDef,
25}
26
27impl_event!(TableCreatedEvent);
28
29pub struct ViewCreatedEvent {
30	pub view: ViewDef,
31}
32
33impl_event!(ViewCreatedEvent);
34
35pub struct RingBufferCreatedEvent {
36	pub ring_buffer: RingBufferDef,
37}
38
39impl_event!(RingBufferCreatedEvent);
40
41pub struct DictionaryCreatedEvent {
42	pub dictionary: DictionaryDef,
43}
44
45impl_event!(DictionaryCreatedEvent);