reinhardt-query 0.1.0

SQL query builder for Reinhardt framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Core trait for Redis command builders.

use std::fmt::Debug;

use super::resp::RespCommand;

/// Trait for building Redis commands into RESP3 wire format.
///
/// Analogous to `QueryStatementBuilder` for SQL statements.
/// All Redis command builders implement this trait.
pub trait CommandStatementBuilder: Debug {
	/// Build this command into a [`RespCommand`] ready for RESP3 serialization.
	fn build(&self) -> RespCommand;
}