/** * Ductape Database ORM Module * * A uniform database ORM interface supporting multiple database types: * - PostgreSQL * - MySQL * - MongoDB * - DynamoDB * - MariaDB * - Cassandra * * @module database */ export { DatabaseService, databaseService, IDatabaseServiceConfig, IDatabaseSchemaSnapshot, DatabaseConnection, } from './databases.service'; export { BaseAdapter, DatabaseFeature, } from './adapters/base.adapter'; export { AdapterFactory } from './adapters/adapter.factory'; export { PostgreSQLAdapter } from './adapters/postgresql.adapter'; export { MySQLAdapter } from './adapters/mysql.adapter'; export { MongoDBAdapter } from './adapters/mongodb.adapter'; export { DynamoDBAdapter } from './adapters/dynamodb.adapter'; export { MariaDBAdapter } from './adapters/mariadb.adapter'; export { CassandraAdapter } from './adapters/cassandra.adapter'; export { QueryBuilder, Operators, OperatorType, } from './operators/query-builder'; export { AggregationBuilder, AggregationOperators, AggregationOperatorType, } from './operators/aggregation-builder'; export { TransactionManager, Transaction, Savepoint, } from './transactions/transaction-manager'; export { SchemaManager, MigrationBuilder, migration, } from './schema/schema-manager'; export type { ISchemaOperationOptions, ISchemaOperationResult, } from './schema/schema-manager'; export { MigrationEngine, MigrationHelpers, } from './migrations/migration-engine'; export { ActionManager, ActionBuilder, createAction, } from './actions/action-manager'; export { DatabaseError } from './utils/database-error'; export { DatabaseType, ColumnType, IndexType, SortOrder, IsolationLevel, DatabaseActionType, AlterationType, RelationshipType, ConflictAction, DatabaseErrorType, MigrationStatus, ConstraintType, ReferentialAction, } from './types/enums'; export type { IDatabaseEnvConfig, IDatabaseConfig, IConnectionConfig, IConnectionOptions, ISSLConfig, IConnectionResult, IConnectionContext, IAdapterConnectionOptions, IAdapterConnectionResult, } from './types/connection.interface'; export type { IQueryOptions, IWhereClause, IComparisonOperator, ILogicalOperator, IOrderBy, IInclude, IQueryResult, IRawQueryOptions, IRawQueryResult, IBuiltQuery, } from './types/query.interface'; export type { IInsertOptions, IOnConflictOptions, IInsertResult, IUpdateOptions, IUpdateOperator, IUpdateResult, IDeleteOptions, IDeleteResult, IUpsertOptions, IUpsertResult, } from './types/write.interface'; export type { ITransactionOptions, ITransaction, TransactionStatus, ISavepoint, ITransactionCallback, ITransactionContext, } from './types/transaction.interface'; export type { IBaseAggregationOptions, ICountOptions, ISumOptions, IAvgOptions, IMinMaxOptions, IAggregateOptions, IAggregationOperations, IAggregationOperation, IStringAggOptions, IAggregateResult, IGroupByOptions, IHavingClause, IHavingCondition, IGroupByOrderBy, IGroupByResult, IBuiltAggregation, } from './types/aggregation.interface'; export type { ITableDefinition, IColumnDefinition, IForeignKeyReference, IIndexDefinition, IIndexColumn, IConstraintDefinition, ICreateTableOptions, IAlterTableOperation, ICreateIndexOptions, IDropIndexOptions, IListIndexesOptions, ITableSchema, ITableInfo, IColumnInfo, IIndexInfo, IConstraintInfo, IIndexStatistics, SimpleFieldType, ISimpleFieldDefinition, ISimpleSchemaDefinition, ISimpleCreateOptions, ISimpleDropOptions, ISimpleIndexOptions, } from './types/schema.interface'; export type { IMigration, IMigrationOperation, IMigrationHistory, IMigrationStatusOptions, IMigrationStatusResult, IMigrationResult, IMigrationHelpers, IFieldDefinition, FieldType, IIndexFieldDefinition, ICreateCollectionMigration, IDropCollectionMigration, ICreateIndexMigration, IDropIndexMigration, IAddFieldMigration, IDropFieldMigration, IRenameFieldMigration, IModifyFieldMigration, IAddConstraintMigration, IDropConstraintMigration, ICreateMongoValidationMigration, IDropMongoValidationMigration, IShardCollectionMigration, IDynamoGSI, IDynamoLSI, ICreateDynamoTableMigration, IUpdateDynamoThroughputMigration, IAddDynamoGSIMigration, IRemoveDynamoGSIMigration, IEnableDynamoStreamMigration, IEnableDynamoTTLMigration, IAlterCassandraTableMigration, ICreateCassandraMaterializedViewMigration, IDropCassandraMaterializedViewMigration, IRawOperationMigration, ICreateTableMigration, IDropTableMigration, IAlterTableMigration, IAddColumnMigration, IDropColumnMigration, IRenameColumnMigration, IRawSqlMigration, } from './types/migration.interface'; export type { IActionDefinition, IActionTemplate, IActionOrderBy, IActionCreateOptions, IActionUpdateOptions, IActionExecuteOptions, IActionResult, IPlaceholder, IParsedTemplate, } from './types/action.interface'; export { PreSaveProcessor, PreSave, } from './presave/presave-processor'; export { decrypt, decryptFields, verifyHash, verifyShaHash, } from './presave/decrypt'; export { PreSaveOperationType, } from './types/presave.interface'; export { TriggerProcessor, createTriggerProcessor, Trigger, } from './triggers/trigger-processor'; export { TriggerEvent, TriggerTiming, TriggerActionType, ConditionOperator, } from './types/trigger.interface'; export type { ITriggerActionBase, ITriggerDatabaseAction, ITriggerStorageAction, ITriggerNotificationAction, ITriggerBrokerAction, ITriggerCacheAction, ITriggerFeatureAction, ITriggerActionExecuteAction, ITriggerAgentAction, ITriggerResilienceAction, ITriggerLogAction, ITriggerSessionAction, ITriggerVectorAction, ITriggerCustomAction, ITriggerHttpAction, ITriggerAction, IConditionClause, ITriggerCondition, ITriggerContext, ITriggerRetry, ITriggerDefinition, ITriggerActionResult, ITriggerResult, ITriggerConfig, ISchemaTriggerConfig, IPersistedTriggerAction, ICreateTriggerInput, IUpdateTriggerInput, IPersistedTrigger, IListTriggersOptions, ITriggerManager, } from './types/trigger.interface'; export type { IPreSaveOperation, IPreSaveBaseOptions, IPreSaveEncryptOptions, IPreSaveHashOptions, IPreSaveMaskOptions, IPreSaveValidateOptions, IPreSaveTransformOptions, IPreSaveSlugOptions, IPreSaveTruncateOptions, IPreSaveRoundOptions, IPreSaveClampOptions, IPreSaveDefaultOptions, IPreSaveComputeOptions, IPreSaveSimpleOptions, IValidationRule, IValidationError, IPreSaveConfig, IPreSaveResult, IAppliedOperation, ISchemaPreSaveConfig, } from './types/presave.interface';