Crate elefant_tools

Crate elefant_tools 

Source

Structs§

CopyDataOptions
HypertableCompression
HypertableCompressionOrderedColumn
HypertableRetention
IdentifierQuoter
Provides utilities for quoting identifiers in PostgreSQL as needed.
ObjectId
Used for tracking dependencies between objects and to handle renames.
ParallelCopyDestinationNotAvailable
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.
PostgresAggregateFunction
PostgresCheckConstraint
PostgresClientWrapper
A wrapper around tokio_postgres::Client, which provides a more convenient interface for working with the client.
PostgresColumn
PostgresDatabase
PostgresDomain
PostgresDomainConstraint
PostgresEnum
PostgresExtension
PostgresForeignKey
PostgresForeignKeyColumn
PostgresForeignKeyReferencedColumn
PostgresFunction
PostgresIndex
PostgresIndexIncludedColumn
PostgresIndexKeyColumn
PostgresInstanceStorage
A CopyTarget for Postgres.
PostgresSchema
PostgresSequence
PostgresTable
PostgresTrigger
PostgresUniqueConstraint
PostgresView
PostgresViewColumn
SqlFile
A file to output sql to
SqlFileOptions
Options that control how the SQL file is generated.
TableData
Data in a table. This data is a stream which can be read from the data source.
TimescaleContinuousAggregateRefreshOptions
TimescaleDbUserDefinedJob
TimescaleSupport

Enums§

DataFormat
Describes how data can be copied when using the COPY command in postgres.
ElefantToolsError
All the errors that can occur in the elefant-tools library
FinalModify
FunctionKind
HypertableDimension
Parallel
PartitionedTableColumns
PostgresConstraint
PostgresIndexColumnDirection
PostgresIndexNullsOrder
PostgresIndexType
PostgresTriggerEvent
PostgresTriggerLevel
PostgresTriggerTiming
ReferenceAction
SequentialOrParallel
A type that can be either a sequential or parallel source or destination.
SimplifiedDataType
SqlDataMode
How to generate statements for inserting data.
SupportedParallelism
Indicates if parallelism is supported.
TablePartitionStrategy
TableTypeDetails
ViewOptions
Volatility

Traits§

AsyncCleanup
BaseCopyTarget
A trait for thing that are either a CopyDestination or CopySource.
CopyDestination
CopyDestinationFactory
A factory for providing copy destinations. This is used to create a destination that can be used to write data to.
CopySource
A copy source is something that can be used to read data from a source.
CopySourceFactory
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