[−][src]Struct wdinfo::ubuntu::DBinfo

pub struct DBinfo { /* fields omitted */ }

struct with database information

Implementations

impl DBinfo[src]

pub fn init(
    host: String,
    port: String,
    database: String,
    username: String,
    password: String
) -> Result<Self, &'static str>
[src]

initialization

pub fn local_clean(&mut self, pathstr: &str) -> Result<(), &'static str>[src]

check local file: delete if exist

pub fn export(
    &mut self,
    skm: &str,
    tbl: &str,
    pathstr: &str
) -> Result<(), &'static str>
[src]

export table from database to local file * Greenplum on remote server in docker * Postgresql in remote server

pub fn import(
    &mut self,
    skm: &str,
    tbl: &str,
    pathstr: &str
) -> Result<(), &'static str>
[src]

import table from local file * Greenplum on remote server in docker * Postgresql in remote server

pub fn psql_chk_tbl_exist(
    &mut self,
    skm: &str,
    tbl: &str
) -> Result<bool, &'static str>
[src]

check table exsitence using psql * Greenplum on remote server in docker * Postgresql in remote server

pub fn psql_tbl_ddl_gen(
    &mut self,
    port: &str,
    skm: &str,
    tbl: &str,
    dllfile: &str
) -> Result<(), &'static str>
[src]

create table ddl using psql * Greenplum on remote server in docker * Postgresql in remote server

pub fn tbl_ddl_scp(&mut self, ddlfile: &str) -> Result<(), &'static str>[src]

scp table ddl from remote to local

pub fn create_tbl_use_ddl(&mut self, ddlfile: &str) -> Result<(), &'static str>[src]

create table using local ddl

pub fn psql_truncate_tbl(
    &mut self,
    skm: &str,
    tbl: &str
) -> Result<(), &'static str>
[src]

truncate table using psql * Greenplum on remote server in docker * Postgresql in remote server

pub fn tbl_ddl_clean(&mut self, ddlfile: &str) -> Result<(), &'static str>[src]

table ddl clean from both remote and local

Auto Trait Implementations

impl RefUnwindSafe for DBinfo[src]

impl Send for DBinfo[src]

impl Sync for DBinfo[src]

impl Unpin for DBinfo[src]

impl UnwindSafe for DBinfo[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> UnsafeAny for T where
    T: Any, 

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,