chroma_types/operators.rs
1//! Well-known operator IDs and names that are pre-populated in the database.
2//!
3//! ⚠️ **DO NOT EDIT THIS FILE MANUALLY** ⚠️
4//!
5//! These constants are auto-generated from the Go source file:
6//! `go/pkg/sysdb/metastore/db/dbmodel/constants.go`
7//!
8//! ## To add a new operator:
9//!
10//! 1. Create a database migration to INSERT the operator
11//! (in `go/pkg/sysdb/metastore/db/migrations/*.sql`)
12//!
13//! 2. Add the UUID constant to `go/pkg/sysdb/metastore/db/dbmodel/constants.go`:
14//! ```go
15//! OperatorMyOperator = uuid.MustParse("your-uuid-here")
16//! OperatorNameMyOperator = "my_operator"
17//! ```
18//!
19//! 3. Run the generation script:
20//! ```bash
21//! ./bin/generate_operator_constants.sh
22//! ```
23//!
24//! 4. Commit the updated `operators_generated.rs` file
25//!
26//! See `rust/types/README_OPERATORS.md` for more details.
27
28// Include the generated constants file (checked into git)
29include!("operators_generated.rs");