kind2sql 0.1.4

Type-safe binary to SQL field converter | 类型安全的二进制到 SQL 字段转换器
Documentation
#![cfg_attr(docsrs, feature(doc_cfg))]

use num_enum::{IntoPrimitive, TryFromPrimitive};

#[repr(u8)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, TryFromPrimitive, IntoPrimitive)]
pub enum Kind {
  U8 = 1,
  I8 = 2,
  U16 = 3,
  I16 = 4,
  U32 = 5,
  I32 = 6,
  U64 = 7,
  I64 = 8,
  String = 9,
  Bytes = 10,
}

#[cfg(feature = "to_sql")]
mod to_sql;
#[cfg(feature = "to_sql")]
pub use to_sql::ToSql;
#[cfg(feature = "mysql")]
pub mod mysql;