Vineet Naik

@naiquevin

Plectrum: Mapping lookup tables in a database to Rust enums

Submitted Mar 8, 2026

Plectrum is an open source crate (I’m the author) that provides a set of abstractions for mapping lookup/reference tables in a database with Rust enums.

It allows application developers to take full advantage of schema normalization on the database side as well as leverage Rust’s type checker in the application code to catch errors at compile time.

Plectrum is agnostic of the database as well as the SQL/ORM library or db driver. Actually, it’s even agnostic of the data source, you could use it with data stored any where e.g. text files.

Talk outline

  • Introduction
  • Motivation: The classic problem when using lookup tables
  • How plectrum solves it
  • Plectrum’s abstractions
  • The Derive macro with real world examples
  • Usage in frameworks such as axum, tauri
  • Fail-fast strategy to deal with data inconsistency
  • QnA

Duration: 30 mins

Target audience

Rust developers with basic experience with relational databases.

Speaker bio

I’m a software engineer with 16+ years of experience building and maintaining terabyte-scale production systems. Currently working as an independent consultant/freelancer with strong preference for projects leveraging rust. Previously I’ve worked at Helpshift as a staff engineer in the platform engineering team. I’m also the founder of captrice.io - a passion project turned product I’m trying to bootstrap on the side.

Comments

{{ gettext('Login to leave a comment') }}

{{ gettext('Post a comment…') }}
{{ gettext('New comment') }}
{{ formTitle }}

{{ errorMsg }}

{{ gettext('No comments posted yet') }}

Hosted by

A community of Rust language contributors and end-users from Bangalore. We have presence on the following telegram channels https://t.me/RustIndia https://t.me/fpncr LinkedIn: https://www.linkedin.com/company/rust-india/ more