Crate elefant_tools
source ·Structs§
- Provides utilities for quoting identifiers in PostgreSQL as needed.
- Used for tracking dependencies between objects and to handle renames.
- A CopyDestination that panics when used. Cannot be constructed outside this module, but is available for type reference to indicate Parallel copy is not supported.
- A wrapper around tokio_postgres::Client, which provides a more convenient interface for working with the client.
- A CopyTarget for Postgres.
- A file to output sql to
- Options that control how the SQL file is generated.
- Data in a table. This data is a stream which can be read from the data source.
Enums§
- Describes how data can be copied when using the
COPY
command in postgres. - All the errors that can occur in the elefant-tools library
- A type that can be either a sequential or parallel source or destination.
- How to generate statements for inserting data.
- Indicates if parallelism is supported.
Traits§
- A trait for thing that are either a CopyDestination or CopySource.
- A factory for providing copy destinations. This is used to create a destination that can be used to write data to.
- A copy source is something that can be used to read data from a source.
- A factory for providing copy sources. This is used to create a source that can be used to read data from.
Functions§
- Applies the provided sql file context to the provided connection. If the sql file was generated by using the SqlFile struct, this function is quite memory efficient. If not the entire file will be read into memory before being executed in a single transaction.
- Applies the provided sql string to the provided connection. See apply_sql_file for more information.
- Copies data and structures from the provided source to the destination.
Type Aliases§
- A result type that uses the ElefantToolsError as the error type