Struct dbcrossbarlib::drivers::postgres::PostgresLocator[][src]

pub struct PostgresLocator { /* fields omitted */ }
Expand description

A Postgres database URL and a table name.

This is the central point of access for talking to a running PostgreSQL database.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Provide a mechanism for casting a dyn Locator back to the underlying, concrete locator type using Rust’s Any type. Read more

Return a table schema, if available.

Count the records specified by this locator.

If this locator can be used as a local data source, return a stream of CSV streams. This function type is bit hairy: Read more

If this locator can be used as a local data sink, write data to it. Read more

Write a table schema to this locator, if that’s the sort of thing that we can do. Read more

Should we display the individual output locations?

Can we access the data at source directly using write_remote_data?

Take the data at source, and write to this locator directly, without passing it through the local system. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more