[−][src]Struct wdinfo::ubuntu::DBinfo
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]
host: String,
port: String,
database: String,
username: String,
password: String
) -> Result<Self, &'static str>
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]
&mut self,
skm: &str,
tbl: &str,
pathstr: &str
) -> Result<(), &'static str>
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]
&mut self,
skm: &str,
tbl: &str,
pathstr: &str
) -> Result<(), &'static str>
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]
&mut self,
skm: &str,
tbl: &str
) -> Result<bool, &'static str>
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]
&mut self,
port: &str,
skm: &str,
tbl: &str,
dllfile: &str
) -> Result<(), &'static str>
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]
&mut self,
skm: &str,
tbl: &str
) -> Result<(), &'static str>
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> UnsafeAny for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,