Structs§
- Copy
Data Options - Hypertable
Compression - Hypertable
Compression Ordered Column - Hypertable
Retention - Identifier
Quoter - Provides utilities for quoting identifiers in PostgreSQL as needed.
- Object
Id - Used for tracking dependencies between objects and to handle renames.
- Parallel
Copy Destination NotAvailable - 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.
- Postgres
Aggregate Function - Postgres
Check Constraint - Postgres
Client Wrapper - A wrapper around tokio_postgres::Client, which provides a more convenient interface for working with the client.
- Postgres
Column - Postgres
Database - Postgres
Domain - Postgres
Domain Constraint - Postgres
Enum - Postgres
Extension - Postgres
Foreign Key - Postgres
Foreign KeyColumn - Postgres
Foreign KeyReferenced Column - Postgres
Function - Postgres
Index - Postgres
Index Included Column - Postgres
Index KeyColumn - Postgres
Instance Storage - A CopyTarget for Postgres.
- Postgres
Schema - Postgres
Sequence - Postgres
Table - Postgres
Trigger - Postgres
Unique Constraint - Postgres
View - Postgres
View Column - SqlFile
- A file to output sql to
- SqlFile
Options - Options that control how the SQL file is generated.
- Table
Data - Data in a table. This data is a stream which can be read from the data source.
- Timescale
Continuous Aggregate Refresh Options - Timescale
DbUser Defined Job - Timescale
Support
Enums§
- Data
Format - Describes how data can be copied when using the
COPYcommand in postgres. - Elefant
Tools Error - All the errors that can occur in the elefant-tools library
- Final
Modify - Function
Kind - Hypertable
Dimension - Parallel
- Partitioned
Table Columns - Postgres
Constraint - Postgres
Index Column Direction - Postgres
Index Nulls Order - Postgres
Index Type - Postgres
Trigger Event - Postgres
Trigger Level - Postgres
Trigger Timing - Reference
Action - Sequential
OrParallel - A type that can be either a sequential or parallel source or destination.
- Simplified
Data Type - SqlData
Mode - How to generate statements for inserting data.
- Supported
Parallelism - Indicates if parallelism is supported.
- Table
Partition Strategy - Table
Type Details - View
Options - Volatility
Traits§
- Async
Cleanup - Base
Copy Target - A trait for thing that are either a CopyDestination or CopySource.
- Copy
Destination - Copy
Destination Factory - A factory for providing copy destinations. This is used to create a destination that can be used to write data to.
- Copy
Source - A copy source is something that can be used to read data from a source.
- Copy
Source Factory - A factory for providing copy sources. This is used to create a source that can be used to read data from.
Functions§
- apply_
sql_ file - 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.
- apply_
sql_ string - Applies the provided sql string to the provided connection. See apply_sql_file for more information.
- copy_
data - Copies data and structures from the provided source to the destination.
Type Aliases§
- Result
- A result type that uses the ElefantToolsError as the error type