rsfbclient-core 0.27.0
imports encoding::DecoderTrapimports encoding::EncoderTrap
SHA-25679df189861df4fa2be12f1d1baf902f86d65bbda63c8a7e7e259c47fe2845678
MaleculeH(Db)Md(In₄)
Evidence
1//! Charset definitions and functions
2//!
3//! [Reference](http://www.destructor.de/firebird/charsets.htm)
4
5use encoding::{all, types::EncodingRef, DecoderTrap, EncoderTrap};
6use std::{borrow::Cow, fmt, str, str::FromStr};
7
8use crate::FbError;
9
10/// Charset definition. Used to encode/decode the
11/// strings.
12pub struct Charset {
13 /// Charset used in firebird
14 pub on_firebird: &'stati …
⋯4 lines
66}
67
68impl Clone for Charset {
69 fn clone(&self) -> Self {
70 Self {
71 on_firebird: self.on_firebir …
1//! Sql parameter types and traits
2
3use crate::{error::FbError, ibase, SqlType};
4use regex::{Captures, Regex};
5use std::collections::HashMap;
6
7pub use SqlType::*;
8
9/// Max length that can be sent without creating a BLOB
10pub const MAX_TEXT_LENGTH: usize = 32767;
11
12impl SqlType {
13 /// Convert the sql value to interbase format
14 pub fn sql_type_and_subtype(&self) -> (u32, u32) {
15 ma …
253:18… raw_sql: &str) -> Result<Self, FbError> {
254 let rparams = Regex::new(r#"('[^']*')|:\w+"#)
255 .map_err(|e| FbError::from(format!("Error on start the regex for named params: {}", e)))
256 .unwrap( …
1[package]
2name = "rsfbclient-core"
3version = "0.27.0"
4description = "Core of firebird client lib"
5authors = ["Luis Fernando Batels <luisfbatels@gmail.com>", "Jairo H Wiethan <[email protected]>"]
6edition = "2021"
7repository = "https://github.com/fernandobatels/rsfbclient"
⋯15 lines
No evidence locations were recorded for this file. Raw result