Skip to content
/ cel2db Public

a library to convert cel expressions to database queries.

License

Notifications You must be signed in to change notification settings

aep-dev/cel2db

Repository files navigation

cel2db

A library to convert cel expressions to database queries. Available as a library for Rust, but this project also intends to target any language that is able to call C functions.

Why Rust exposing C?

The motivation is to provide this common functionality across multiple languages, minimizing maintenance as much as possible.

  • Rust was chosen due to it's developer experience, and type and memory safety.
  • The C FFI is used to expose functionality, since almost all languages support some form of FFI with C.

Running examples

Due to the polyglot nature of this repository, bazel.build is used to define the graph between Python, GoLang, and Rust. You will therefore need to have the compilers and other dependencies for these languages to run all examples.

# run rust tests
bazel test //cel2db:cel2db
# python example
bazel run //python:example
# golang example
bazel run //golang:example

About

a library to convert cel expressions to database queries.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published