Struct dysql_core::DysqlContext
source · pub struct DysqlContext {
pub sql_fd: PathBuf,
pub meta_path: PathBuf,
pub meta_infos: HashMap<u64, String>,
pub templats: HashMap<u64, Arc<Template>>,
}
Fields§
§sql_fd: PathBuf
§meta_path: PathBuf
§meta_infos: HashMap<u64, String>
§templats: HashMap<u64, Arc<Template>>
Implementations§
source§impl<'a> DysqlContext
impl<'a> DysqlContext
pub fn new(sql_fd: PathBuf) -> Self
pub fn get_template(&self, template_id: u64) -> Option<Arc<Template>>
pub fn insert_template( &mut self, template_id: u64, template: Arc<Template> ) -> Option<Arc<Template>>
pub fn save_sql_template( &mut self, meta_id: u64, source_file: String, template_id: u64, template: Arc<Template>, sql_name: Option<String> )
pub fn default() -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DysqlContext
impl RefUnwindSafe for DysqlContext
impl Send for DysqlContext
impl Sync for DysqlContext
impl Unpin for DysqlContext
impl UnwindSafe for DysqlContext
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more