pub struct Args {
pub url: Option<String>,
pub schema: Option<String>,
pub table: Option<String>,
pub ignore_tables: Option<String>,
pub minimal: bool,
pub full: bool,
pub output: Option<String>,
pub title: Option<String>,
}Expand description
Mermaid ER diagram generator from PostgreSQL.
Fields§
§url: Option<String>PostgreSQL connection URL (ex: postgresql://user:pass@host:5432/dbname)
schema: Option<String>Schemas to include, comma-separated (ex: public,extended)
table: Option<String>Tables to include, comma-separated (ex: users,orders)
ignore_tables: Option<String>Tables to exclude, comma-separated (ex: logs,audit_trail)
minimal: boolMinimal mode: columns only, without PK/FK metadata
full: boolFull mode: columns + PK/FK/NOT NULL + relationships + constraints + indexes
output: Option<String>Output file (default: stdout)
title: Option<String>Diagram title (default: derived from the database name)
Implementations§
Source§impl Args
impl Args
Sourcepub fn parse_csv<'a>(&self, value: Option<&'a str>) -> Vec<&'a str>
pub fn parse_csv<'a>(&self, value: Option<&'a str>) -> Vec<&'a str>
Parses comma-separated values into a vector of &str.
Sourcepub fn output_mode(&self) -> OutputMode
pub fn output_mode(&self) -> OutputMode
Determines the output mode.
Sourcepub fn parse_url(&self) -> Result<ConnectionInfo, ErdifyError>
pub fn parse_url(&self) -> Result<ConnectionInfo, ErdifyError>
Builds ConnectionInfo from –url or DATABASE_URL.
Trait Implementations§
Source§impl Args for Args
impl Args for Args
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for Args
impl CommandFactory for Args
Source§impl FromArgMatches for Args
impl FromArgMatches for Args
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Parser for Args
impl Parser for Args
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for Args
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnsafeUnpin for Args
impl UnwindSafe for Args
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