BREAKING CHANGE(core): replace the TypeScript database engine with a Rust-backed embedded server and bridge
This commit is contained in:
19
rust/crates/rustdb-wire/src/opcodes.rs
Normal file
19
rust/crates/rustdb-wire/src/opcodes.rs
Normal file
@@ -0,0 +1,19 @@
|
||||
/// Wire protocol op codes
|
||||
pub const OP_REPLY: i32 = 1;
|
||||
pub const OP_UPDATE: i32 = 2001;
|
||||
pub const OP_INSERT: i32 = 2002;
|
||||
pub const OP_QUERY: i32 = 2004;
|
||||
pub const OP_GET_MORE: i32 = 2005;
|
||||
pub const OP_DELETE: i32 = 2006;
|
||||
pub const OP_KILL_CURSORS: i32 = 2007;
|
||||
pub const OP_COMPRESSED: i32 = 2012;
|
||||
pub const OP_MSG: i32 = 2013;
|
||||
|
||||
/// OP_MSG section types
|
||||
pub const SECTION_BODY: u8 = 0;
|
||||
pub const SECTION_DOCUMENT_SEQUENCE: u8 = 1;
|
||||
|
||||
/// OP_MSG flag bits
|
||||
pub const MSG_FLAG_CHECKSUM_PRESENT: u32 = 1 << 0;
|
||||
pub const MSG_FLAG_MORE_TO_COME: u32 = 1 << 1;
|
||||
pub const MSG_FLAG_EXHAUST_ALLOWED: u32 = 1 << 16;
|
||||
Reference in New Issue
Block a user