udf 0.5.1

Easily create user defined functions (UDFs) for MariaDB and MySQL.
Documentation
//! Types that represent SQL interfaces

use std::fmt;

mod arg;
mod arg_list;
mod config;
mod sql_types;

// Document everything inline
#[doc(inline)]
pub use arg::*;
#[doc(inline)]
pub use arg_list::*;
#[doc(inline)]
pub use config::*;
#[doc(inline)]
pub use sql_types::*;

/// Max error message size, 0x200 = 512 bytes
pub const MYSQL_ERRMSG_SIZE: usize = 0x200;

/// Minimum size of a buffer for string results
pub const MYSQL_RESULT_BUFFER_SIZE: usize = 255;

/// A zero-sized struct indicating that something went wrong
///
/// If you return an instance of this, it is likely a good idea to log to stderr
/// what went wrong.
#[derive(Debug, PartialEq, Eq, PartialOrd, Clone)]
pub struct ProcessError;

impl fmt::Display for ProcessError {
    #[inline]
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        write!(f, "udf processing error")
    }
}

impl std::error::Error for ProcessError {}