pub struct DBSchema { /* private fields */ }Expand description
p4 [g-opts] dbschema [tablename[:tableversion]]
p4 [g-opts] dbschema [-A] [tablename] ...
Reports information about the database structure in which the server stores metadata. The command is intended for systems integrators and returns tagged output.
Spawn with a list of tablename entries, each optionally followed by :tableversion; by default all current tables are reported. Use Self::all_versions to supply -A and report all versions instead.
Implementations§
Source§impl DBSchema
impl DBSchema
Sourcepub fn new(bin: impl Into<PathBuf>, global_opts: GlobalOpts) -> Self
pub fn new(bin: impl Into<PathBuf>, global_opts: GlobalOpts) -> Self
Creates a new p4 dbschema command.
bin is the path to the Perforce command-line executable.
Sourcepub fn get_global_opts(&self) -> &GlobalOpts
pub fn get_global_opts(&self) -> &GlobalOpts
Sourcepub fn set_global_opts(&mut self, v: GlobalOpts) -> &mut Self
pub fn set_global_opts(&mut self, v: GlobalOpts) -> &mut Self
Sourcepub fn global_opts(self, v: GlobalOpts) -> Self
pub fn global_opts(self, v: GlobalOpts) -> Self
Sourcepub fn get_all_versions(&self) -> bool
pub fn get_all_versions(&self) -> bool
Sourcepub fn set_all_versions(&mut self, v: bool) -> &mut Self
pub fn set_all_versions(&mut self, v: bool) -> &mut Self
Sourcepub fn all_versions(self, v: bool) -> Self
pub fn all_versions(self, v: bool) -> Self
Trait Implementations§
Source§impl ParameterizedSpawn<()> for DBSchema
impl ParameterizedSpawn<()> for DBSchema
Source§impl<S, I> ParameterizedSpawn<(S,)> for DBSchema
Available on non-crate feature lt2020_2 only.
impl<S, I> ParameterizedSpawn<(S,)> for DBSchema
Available on non-crate feature
lt2020_2 only.Source§fn spawn_with(&mut self, (tables): (S,)) -> Result<Self::Output, Self::Error>
fn spawn_with(&mut self, (tables): (S,)) -> Result<Self::Output, Self::Error>
Spawns p4 dbschema for the given tables as a child process with
piped standard output and error streams; use the returned Child
handle to wait for it or interact with it.
type Output = Child
type Error = Error
Source§impl SubCommand for DBSchema
impl SubCommand for DBSchema
fn name(&self) -> &str
fn inject_local_args(&self, _: &mut Command)
fn global_opts(&self) -> Option<&GlobalOpts>
fn inject_args(&self, command: &mut Command)
fn setup_command<S: AsRef<OsStr>>(&self, bin: S) -> Command
Auto Trait Implementations§
impl Freeze for DBSchema
impl RefUnwindSafe for DBSchema
impl Send for DBSchema
impl Sync for DBSchema
impl Unpin for DBSchema
impl UnsafeUnpin for DBSchema
impl UnwindSafe for DBSchema
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