kind2sql 0.1.5

Type-safe binary to SQL field converter | 类型安全的二进制到 SQL 字段转换器
Documentation
use crate::SqlFiled;

pub struct Mysql;

impl SqlFiled for Mysql {
  fn blob(data: &[u8]) -> String {
    sqle::mysql::blob(data)
  }
}

pub const KIND: [&str; 10] = [
  "TINYINT UNSIGNED",  // U8
  "TINYINT",           // I8
  "SMALLINT UNSIGNED", // U16
  "SMALLINT",          // I16
  "INT UNSIGNED",      // U32
  "INT",               // I32
  "BIGINT UNSIGNED",   // U64
  "BIGINT",            // I64
  "LONGTEXT",          // String
  "LONGBLOB",          // Bytes
];