cocoindex icon indicating copy to clipboard operation
cocoindex copied to clipboard

[FEATURE] Support Enum as a basic type

Open badmonster0 opened this issue 7 months ago • 2 comments

Here are all the dataType supported in CocoIndex: https://cocoindex.io/docs/core/data_types

We want to add Enum Type. https://github.com/cocoindex-io/cocoindex/issues/217 is an example.

Representations in different places

  • We can use a Arc<str> in BasicValue in Rust.
  • We can use Enum in Python.
  • Use string in different storages like Postgres
  • Please also update conversion logic in [convert.rs]

Other potential code that needs to be updated

(it may not be a fully list, feel free to update more files as needed.


❤️ Contributors, please refer to 📙Contributing Guide. Unless the PR can be sent immediately (e.g. just a few lines of code), we recommend you to leave a comment on the issue like I'm working on it or Can I work on this issue? to avoid duplicating work. Our Discord server is always open and friendly.

badmonster0 avatar May 20 '25 06:05 badmonster0