MCPcopy Create free account
hub / github.com/erans/pgsqlite / as_byte

Method as_byte

src/protocol/messages.rs:79–85  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

77
78impl TransactionStatus {
79 pub fn as_byte(&self) -> u8 {
80 match self {
81 TransactionStatus::Idle => b'I',
82 TransactionStatus::InTransaction => b'T',
83 TransactionStatus::InFailedTransaction => b'E',
84 }
85 }
86}
87
88#[derive(Debug, Clone)]

Callers 1

encode_ready_for_queryFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected