pub struct ConnectionDetector;Implementations§
Source§impl ConnectionDetector
impl ConnectionDetector
Sourcepub fn detect_all(workspace_root: Option<&Path>) -> Vec<DetectedCandidate>
pub fn detect_all(workspace_root: Option<&Path>) -> Vec<DetectedCandidate>
Detect all connection candidates across environment, ~/.pgpass, and workspace root.
Sourcepub fn detect_env_vars() -> Option<DetectedCandidate>
pub fn detect_env_vars() -> Option<DetectedCandidate>
Detect from environment variables (DATABASE_URL, POSTGRES_URL, PG*).
Sourcepub fn detect_pgpass() -> Vec<DetectedCandidate>
pub fn detect_pgpass() -> Vec<DetectedCandidate>
Parse entries from ~/.pgpass (format: hostname:port:database:username:password).
Sourcepub fn detect_dotenv(root: &Path) -> Vec<DetectedCandidate>
pub fn detect_dotenv(root: &Path) -> Vec<DetectedCandidate>
Parse .env files under workspace root.
Sourcepub fn detect_docker_compose(root: &Path) -> Vec<DetectedCandidate>
pub fn detect_docker_compose(root: &Path) -> Vec<DetectedCandidate>
Parse docker-compose files under workspace root.
Auto Trait Implementations§
impl Freeze for ConnectionDetector
impl RefUnwindSafe for ConnectionDetector
impl Send for ConnectionDetector
impl Sync for ConnectionDetector
impl Unpin for ConnectionDetector
impl UnsafeUnpin for ConnectionDetector
impl UnwindSafe for ConnectionDetector
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more