From 7d36d6cfc5df831f45ae6976f1ed659231bb5a2a Mon Sep 17 00:00:00 2001 From: Gwynne Raskind Date: Sun, 31 Mar 2024 13:18:35 -0500 Subject: [PATCH] Reorganize the source code layout (#173) --- .../Builders/{ => Implementations}/SQLAlterEnumBuilder.swift | 0 .../Builders/{ => Implementations}/SQLAlterTableBuilder.swift | 0 .../{ => Implementations}/SQLConflictUpdateBuilder.swift | 0 .../Builders/{ => Implementations}/SQLCreateEnumBuilder.swift | 0 .../Builders/{ => Implementations}/SQLCreateIndexBuilder.swift | 0 .../{ => Implementations}/SQLCreateTableAsSubqueryBuilder.swift | 0 .../Builders/{ => Implementations}/SQLCreateTableBuilder.swift | 0 .../Builders/{ => Implementations}/SQLCreateTriggerBuilder.swift | 0 .../SQLKit/Builders/{ => Implementations}/SQLDeleteBuilder.swift | 0 .../Builders/{ => Implementations}/SQLDropEnumBuilder.swift | 0 .../Builders/{ => Implementations}/SQLDropIndexBuilder.swift | 0 .../Builders/{ => Implementations}/SQLDropTableBuilder.swift | 0 .../Builders/{ => Implementations}/SQLDropTriggerBuilder.swift | 0 .../SQLKit/Builders/{ => Implementations}/SQLInsertBuilder.swift | 0 .../{ => Implementations}/SQLPredicateGroupBuilder.swift | 0 .../SQLKit/Builders/{ => Implementations}/SQLRawBuilder.swift | 0 .../SQLSecondaryPredicateGroupBuilder.swift | 0 .../SQLKit/Builders/{ => Implementations}/SQLSelectBuilder.swift | 0 .../SQLKit/Builders/{ => Implementations}/SQLUnionBuilder.swift | 0 .../SQLKit/Builders/{ => Implementations}/SQLUpdateBuilder.swift | 0 .../Builders/{ => Prototypes}/SQLColumnUpdateBuilder.swift | 0 Sources/SQLKit/Builders/{ => Prototypes}/SQLJoinBuilder.swift | 0 .../Builders/{ => Prototypes}/SQLPartialResultBuilder.swift | 0 .../SQLKit/Builders/{ => Prototypes}/SQLPredicateBuilder.swift | 0 Sources/SQLKit/Builders/{ => Prototypes}/SQLQueryBuilder.swift | 0 Sources/SQLKit/Builders/{ => Prototypes}/SQLQueryFetcher.swift | 0 .../SQLKit/Builders/{ => Prototypes}/SQLReturningBuilder.swift | 0 .../Builders/{ => Prototypes}/SQLSecondaryPredicateBuilder.swift | 0 .../SQLSubqueryClauseBuilder.swift} | 0 Sources/SQLKit/{ => Database}/SQLDatabase.swift | 0 Sources/SQLKit/{ => Database}/SQLDatabaseReportedVersion.swift | 0 Sources/SQLKit/{ => Database}/SQLDialect.swift | 0 Sources/SQLKit/{ => Deprecated}/SQLError.swift | 0 Sources/SQLKit/{Query => Expressions/Basics}/SQLAlias.swift | 0 .../Basics/SQLColumn.swift} | 0 Sources/SQLKit/{Query => Expressions/Basics}/SQLConstraint.swift | 0 Sources/SQLKit/{Query => Expressions/Basics}/SQLDataType.swift | 0 Sources/SQLKit/{Query => Expressions/Basics}/SQLDirection.swift | 0 Sources/SQLKit/{Query => Expressions/Basics}/SQLDistinct.swift | 0 .../{Query => Expressions/Basics}/SQLForeignKeyAction.swift | 0 .../Basics}/SQLNestedSubpathExpression.swift | 0 .../Clauses}/SQLAlterColumnDefinitionType.swift | 0 .../{Query => Expressions/Clauses}/SQLColumnAssignment.swift | 0 .../Clauses}/SQLColumnConstraintAlgorithm.swift | 0 .../{Query => Expressions/Clauses}/SQLColumnDefinition.swift | 0 .../{Query => Expressions/Clauses}/SQLConflictAction.swift | 0 .../Clauses}/SQLConflictResolutionStrategy.swift | 0 .../SQLKit/{Query => Expressions/Clauses}/SQLDropBehaviour.swift | 0 .../SQLKit/{Query => Expressions/Clauses}/SQLEnumDataType.swift | 0 .../{Query => Expressions/Clauses}/SQLExcludedColumn.swift | 0 .../SQLKit/{Query => Expressions/Clauses}/SQLForeignKey.swift | 0 Sources/SQLKit/{Query => Expressions/Clauses}/SQLJoin.swift | 0 .../SQLKit/{Query => Expressions/Clauses}/SQLJoinMethod.swift | 0 .../SQLKit/{Query => Expressions/Clauses}/SQLLockingClause.swift | 0 Sources/SQLKit/{Query => Expressions/Clauses}/SQLOrderBy.swift | 0 Sources/SQLKit/{Query => Expressions/Clauses}/SQLReturning.swift | 0 .../Clauses}/SQLTableConstraintAlgorithm.swift | 0 Sources/SQLKit/{Query => Expressions/Queries}/SQLAlterEnum.swift | 0 .../SQLKit/{Query => Expressions/Queries}/SQLAlterTable.swift | 0 .../SQLKit/{Query => Expressions/Queries}/SQLCreateEnum.swift | 0 .../SQLKit/{Query => Expressions/Queries}/SQLCreateIndex.swift | 0 .../SQLKit/{Query => Expressions/Queries}/SQLCreateTable.swift | 0 .../SQLKit/{Query => Expressions/Queries}/SQLCreateTrigger.swift | 0 Sources/SQLKit/{Query => Expressions/Queries}/SQLDelete.swift | 0 Sources/SQLKit/{Query => Expressions/Queries}/SQLDropEnum.swift | 0 Sources/SQLKit/{Query => Expressions/Queries}/SQLDropIndex.swift | 0 Sources/SQLKit/{Query => Expressions/Queries}/SQLDropTable.swift | 0 .../SQLKit/{Query => Expressions/Queries}/SQLDropTrigger.swift | 0 Sources/SQLKit/{Query => Expressions/Queries}/SQLInsert.swift | 0 Sources/SQLKit/{Query => Expressions/Queries}/SQLSelect.swift | 0 Sources/SQLKit/{Query => Expressions/Queries}/SQLUnion.swift | 0 Sources/SQLKit/{Query => Expressions/Queries}/SQLUpdate.swift | 0 Sources/SQLKit/{ => Expressions}/SQLExpression.swift | 0 Sources/SQLKit/{ => Expressions}/SQLSerializer.swift | 0 Sources/SQLKit/{ => Expressions}/SQLStatement.swift | 0 .../{Query => Expressions/Syntax}/SQLBinaryExpression.swift | 0 .../SQLKit/{Query => Expressions/Syntax}/SQLBinaryOperator.swift | 0 Sources/SQLKit/{Query => Expressions/Syntax}/SQLBind.swift | 0 Sources/SQLKit/{Query => Expressions/Syntax}/SQLFunction.swift | 0 .../{Query => Expressions/Syntax}/SQLGroupExpression.swift | 0 Sources/SQLKit/{Query => Expressions/Syntax}/SQLIdentifier.swift | 0 Sources/SQLKit/{Query => Expressions/Syntax}/SQLList.swift | 0 Sources/SQLKit/{Query => Expressions/Syntax}/SQLLiteral.swift | 0 .../SQLKit/{Query => Expressions/Syntax}/SQLQueryString.swift | 0 Sources/SQLKit/{Query => Expressions/Syntax}/SQLRaw.swift | 0 Sources/SQLKit/{ => Rows}/SQLQueryEncoder.swift | 0 Sources/SQLKit/{ => Rows}/SQLRow.swift | 0 Sources/SQLKit/{ => Rows}/SQLRowDecoder.swift | 1 - 88 files changed, 1 deletion(-) rename Sources/SQLKit/Builders/{ => Implementations}/SQLAlterEnumBuilder.swift (100%) rename Sources/SQLKit/Builders/{ => Implementations}/SQLAlterTableBuilder.swift (100%) rename Sources/SQLKit/Builders/{ => Implementations}/SQLConflictUpdateBuilder.swift (100%) rename Sources/SQLKit/Builders/{ => Implementations}/SQLCreateEnumBuilder.swift (100%) rename Sources/SQLKit/Builders/{ => Implementations}/SQLCreateIndexBuilder.swift (100%) rename Sources/SQLKit/Builders/{ => Implementations}/SQLCreateTableAsSubqueryBuilder.swift (100%) rename Sources/SQLKit/Builders/{ => Implementations}/SQLCreateTableBuilder.swift (100%) rename Sources/SQLKit/Builders/{ => Implementations}/SQLCreateTriggerBuilder.swift (100%) rename Sources/SQLKit/Builders/{ => Implementations}/SQLDeleteBuilder.swift (100%) rename Sources/SQLKit/Builders/{ => Implementations}/SQLDropEnumBuilder.swift (100%) rename Sources/SQLKit/Builders/{ => Implementations}/SQLDropIndexBuilder.swift (100%) rename Sources/SQLKit/Builders/{ => Implementations}/SQLDropTableBuilder.swift (100%) rename Sources/SQLKit/Builders/{ => Implementations}/SQLDropTriggerBuilder.swift (100%) rename Sources/SQLKit/Builders/{ => Implementations}/SQLInsertBuilder.swift (100%) rename Sources/SQLKit/Builders/{ => Implementations}/SQLPredicateGroupBuilder.swift (100%) rename Sources/SQLKit/Builders/{ => Implementations}/SQLRawBuilder.swift (100%) rename Sources/SQLKit/Builders/{ => Implementations}/SQLSecondaryPredicateGroupBuilder.swift (100%) rename Sources/SQLKit/Builders/{ => Implementations}/SQLSelectBuilder.swift (100%) rename Sources/SQLKit/Builders/{ => Implementations}/SQLUnionBuilder.swift (100%) rename Sources/SQLKit/Builders/{ => Implementations}/SQLUpdateBuilder.swift (100%) rename Sources/SQLKit/Builders/{ => Prototypes}/SQLColumnUpdateBuilder.swift (100%) rename Sources/SQLKit/Builders/{ => Prototypes}/SQLJoinBuilder.swift (100%) rename Sources/SQLKit/Builders/{ => Prototypes}/SQLPartialResultBuilder.swift (100%) rename Sources/SQLKit/Builders/{ => Prototypes}/SQLPredicateBuilder.swift (100%) rename Sources/SQLKit/Builders/{ => Prototypes}/SQLQueryBuilder.swift (100%) rename Sources/SQLKit/Builders/{ => Prototypes}/SQLQueryFetcher.swift (100%) rename Sources/SQLKit/Builders/{ => Prototypes}/SQLReturningBuilder.swift (100%) rename Sources/SQLKit/Builders/{ => Prototypes}/SQLSecondaryPredicateBuilder.swift (100%) rename Sources/SQLKit/Builders/{SQLSubqeryClauseBuilder.swift => Prototypes/SQLSubqueryClauseBuilder.swift} (100%) rename Sources/SQLKit/{ => Database}/SQLDatabase.swift (100%) rename Sources/SQLKit/{ => Database}/SQLDatabaseReportedVersion.swift (100%) rename Sources/SQLKit/{ => Database}/SQLDialect.swift (100%) rename Sources/SQLKit/{ => Deprecated}/SQLError.swift (100%) rename Sources/SQLKit/{Query => Expressions/Basics}/SQLAlias.swift (100%) rename Sources/SQLKit/{Query/SQLColumnIdentifier.swift => Expressions/Basics/SQLColumn.swift} (100%) rename Sources/SQLKit/{Query => Expressions/Basics}/SQLConstraint.swift (100%) rename Sources/SQLKit/{Query => Expressions/Basics}/SQLDataType.swift (100%) rename Sources/SQLKit/{Query => Expressions/Basics}/SQLDirection.swift (100%) rename Sources/SQLKit/{Query => Expressions/Basics}/SQLDistinct.swift (100%) rename Sources/SQLKit/{Query => Expressions/Basics}/SQLForeignKeyAction.swift (100%) rename Sources/SQLKit/{Query => Expressions/Basics}/SQLNestedSubpathExpression.swift (100%) rename Sources/SQLKit/{Query => Expressions/Clauses}/SQLAlterColumnDefinitionType.swift (100%) rename Sources/SQLKit/{Query => Expressions/Clauses}/SQLColumnAssignment.swift (100%) rename Sources/SQLKit/{Query => Expressions/Clauses}/SQLColumnConstraintAlgorithm.swift (100%) rename Sources/SQLKit/{Query => Expressions/Clauses}/SQLColumnDefinition.swift (100%) rename Sources/SQLKit/{Query => Expressions/Clauses}/SQLConflictAction.swift (100%) rename Sources/SQLKit/{Query => Expressions/Clauses}/SQLConflictResolutionStrategy.swift (100%) rename Sources/SQLKit/{Query => Expressions/Clauses}/SQLDropBehaviour.swift (100%) rename Sources/SQLKit/{Query => Expressions/Clauses}/SQLEnumDataType.swift (100%) rename Sources/SQLKit/{Query => Expressions/Clauses}/SQLExcludedColumn.swift (100%) rename Sources/SQLKit/{Query => Expressions/Clauses}/SQLForeignKey.swift (100%) rename Sources/SQLKit/{Query => Expressions/Clauses}/SQLJoin.swift (100%) rename Sources/SQLKit/{Query => Expressions/Clauses}/SQLJoinMethod.swift (100%) rename Sources/SQLKit/{Query => Expressions/Clauses}/SQLLockingClause.swift (100%) rename Sources/SQLKit/{Query => Expressions/Clauses}/SQLOrderBy.swift (100%) rename Sources/SQLKit/{Query => Expressions/Clauses}/SQLReturning.swift (100%) rename Sources/SQLKit/{Query => Expressions/Clauses}/SQLTableConstraintAlgorithm.swift (100%) rename Sources/SQLKit/{Query => Expressions/Queries}/SQLAlterEnum.swift (100%) rename Sources/SQLKit/{Query => Expressions/Queries}/SQLAlterTable.swift (100%) rename Sources/SQLKit/{Query => Expressions/Queries}/SQLCreateEnum.swift (100%) rename Sources/SQLKit/{Query => Expressions/Queries}/SQLCreateIndex.swift (100%) rename Sources/SQLKit/{Query => Expressions/Queries}/SQLCreateTable.swift (100%) rename Sources/SQLKit/{Query => Expressions/Queries}/SQLCreateTrigger.swift (100%) rename Sources/SQLKit/{Query => Expressions/Queries}/SQLDelete.swift (100%) rename Sources/SQLKit/{Query => Expressions/Queries}/SQLDropEnum.swift (100%) rename Sources/SQLKit/{Query => Expressions/Queries}/SQLDropIndex.swift (100%) rename Sources/SQLKit/{Query => Expressions/Queries}/SQLDropTable.swift (100%) rename Sources/SQLKit/{Query => Expressions/Queries}/SQLDropTrigger.swift (100%) rename Sources/SQLKit/{Query => Expressions/Queries}/SQLInsert.swift (100%) rename Sources/SQLKit/{Query => Expressions/Queries}/SQLSelect.swift (100%) rename Sources/SQLKit/{Query => Expressions/Queries}/SQLUnion.swift (100%) rename Sources/SQLKit/{Query => Expressions/Queries}/SQLUpdate.swift (100%) rename Sources/SQLKit/{ => Expressions}/SQLExpression.swift (100%) rename Sources/SQLKit/{ => Expressions}/SQLSerializer.swift (100%) rename Sources/SQLKit/{ => Expressions}/SQLStatement.swift (100%) rename Sources/SQLKit/{Query => Expressions/Syntax}/SQLBinaryExpression.swift (100%) rename Sources/SQLKit/{Query => Expressions/Syntax}/SQLBinaryOperator.swift (100%) rename Sources/SQLKit/{Query => Expressions/Syntax}/SQLBind.swift (100%) rename Sources/SQLKit/{Query => Expressions/Syntax}/SQLFunction.swift (100%) rename Sources/SQLKit/{Query => Expressions/Syntax}/SQLGroupExpression.swift (100%) rename Sources/SQLKit/{Query => Expressions/Syntax}/SQLIdentifier.swift (100%) rename Sources/SQLKit/{Query => Expressions/Syntax}/SQLList.swift (100%) rename Sources/SQLKit/{Query => Expressions/Syntax}/SQLLiteral.swift (100%) rename Sources/SQLKit/{Query => Expressions/Syntax}/SQLQueryString.swift (100%) rename Sources/SQLKit/{Query => Expressions/Syntax}/SQLRaw.swift (100%) rename Sources/SQLKit/{ => Rows}/SQLQueryEncoder.swift (100%) rename Sources/SQLKit/{ => Rows}/SQLRow.swift (100%) rename Sources/SQLKit/{ => Rows}/SQLRowDecoder.swift (99%) diff --git a/Sources/SQLKit/Builders/SQLAlterEnumBuilder.swift b/Sources/SQLKit/Builders/Implementations/SQLAlterEnumBuilder.swift similarity index 100% rename from Sources/SQLKit/Builders/SQLAlterEnumBuilder.swift rename to Sources/SQLKit/Builders/Implementations/SQLAlterEnumBuilder.swift diff --git a/Sources/SQLKit/Builders/SQLAlterTableBuilder.swift b/Sources/SQLKit/Builders/Implementations/SQLAlterTableBuilder.swift similarity index 100% rename from Sources/SQLKit/Builders/SQLAlterTableBuilder.swift rename to Sources/SQLKit/Builders/Implementations/SQLAlterTableBuilder.swift diff --git a/Sources/SQLKit/Builders/SQLConflictUpdateBuilder.swift b/Sources/SQLKit/Builders/Implementations/SQLConflictUpdateBuilder.swift similarity index 100% rename from Sources/SQLKit/Builders/SQLConflictUpdateBuilder.swift rename to Sources/SQLKit/Builders/Implementations/SQLConflictUpdateBuilder.swift diff --git a/Sources/SQLKit/Builders/SQLCreateEnumBuilder.swift b/Sources/SQLKit/Builders/Implementations/SQLCreateEnumBuilder.swift similarity index 100% rename from Sources/SQLKit/Builders/SQLCreateEnumBuilder.swift rename to Sources/SQLKit/Builders/Implementations/SQLCreateEnumBuilder.swift diff --git a/Sources/SQLKit/Builders/SQLCreateIndexBuilder.swift b/Sources/SQLKit/Builders/Implementations/SQLCreateIndexBuilder.swift similarity index 100% rename from Sources/SQLKit/Builders/SQLCreateIndexBuilder.swift rename to Sources/SQLKit/Builders/Implementations/SQLCreateIndexBuilder.swift diff --git a/Sources/SQLKit/Builders/SQLCreateTableAsSubqueryBuilder.swift b/Sources/SQLKit/Builders/Implementations/SQLCreateTableAsSubqueryBuilder.swift similarity index 100% rename from Sources/SQLKit/Builders/SQLCreateTableAsSubqueryBuilder.swift rename to Sources/SQLKit/Builders/Implementations/SQLCreateTableAsSubqueryBuilder.swift diff --git a/Sources/SQLKit/Builders/SQLCreateTableBuilder.swift b/Sources/SQLKit/Builders/Implementations/SQLCreateTableBuilder.swift similarity index 100% rename from Sources/SQLKit/Builders/SQLCreateTableBuilder.swift rename to Sources/SQLKit/Builders/Implementations/SQLCreateTableBuilder.swift diff --git a/Sources/SQLKit/Builders/SQLCreateTriggerBuilder.swift b/Sources/SQLKit/Builders/Implementations/SQLCreateTriggerBuilder.swift similarity index 100% rename from Sources/SQLKit/Builders/SQLCreateTriggerBuilder.swift rename to Sources/SQLKit/Builders/Implementations/SQLCreateTriggerBuilder.swift diff --git a/Sources/SQLKit/Builders/SQLDeleteBuilder.swift b/Sources/SQLKit/Builders/Implementations/SQLDeleteBuilder.swift similarity index 100% rename from Sources/SQLKit/Builders/SQLDeleteBuilder.swift rename to Sources/SQLKit/Builders/Implementations/SQLDeleteBuilder.swift diff --git a/Sources/SQLKit/Builders/SQLDropEnumBuilder.swift b/Sources/SQLKit/Builders/Implementations/SQLDropEnumBuilder.swift similarity index 100% rename from Sources/SQLKit/Builders/SQLDropEnumBuilder.swift rename to Sources/SQLKit/Builders/Implementations/SQLDropEnumBuilder.swift diff --git a/Sources/SQLKit/Builders/SQLDropIndexBuilder.swift b/Sources/SQLKit/Builders/Implementations/SQLDropIndexBuilder.swift similarity index 100% rename from Sources/SQLKit/Builders/SQLDropIndexBuilder.swift rename to Sources/SQLKit/Builders/Implementations/SQLDropIndexBuilder.swift diff --git a/Sources/SQLKit/Builders/SQLDropTableBuilder.swift b/Sources/SQLKit/Builders/Implementations/SQLDropTableBuilder.swift similarity index 100% rename from Sources/SQLKit/Builders/SQLDropTableBuilder.swift rename to Sources/SQLKit/Builders/Implementations/SQLDropTableBuilder.swift diff --git a/Sources/SQLKit/Builders/SQLDropTriggerBuilder.swift b/Sources/SQLKit/Builders/Implementations/SQLDropTriggerBuilder.swift similarity index 100% rename from Sources/SQLKit/Builders/SQLDropTriggerBuilder.swift rename to Sources/SQLKit/Builders/Implementations/SQLDropTriggerBuilder.swift diff --git a/Sources/SQLKit/Builders/SQLInsertBuilder.swift b/Sources/SQLKit/Builders/Implementations/SQLInsertBuilder.swift similarity index 100% rename from Sources/SQLKit/Builders/SQLInsertBuilder.swift rename to Sources/SQLKit/Builders/Implementations/SQLInsertBuilder.swift diff --git a/Sources/SQLKit/Builders/SQLPredicateGroupBuilder.swift b/Sources/SQLKit/Builders/Implementations/SQLPredicateGroupBuilder.swift similarity index 100% rename from Sources/SQLKit/Builders/SQLPredicateGroupBuilder.swift rename to Sources/SQLKit/Builders/Implementations/SQLPredicateGroupBuilder.swift diff --git a/Sources/SQLKit/Builders/SQLRawBuilder.swift b/Sources/SQLKit/Builders/Implementations/SQLRawBuilder.swift similarity index 100% rename from Sources/SQLKit/Builders/SQLRawBuilder.swift rename to Sources/SQLKit/Builders/Implementations/SQLRawBuilder.swift diff --git a/Sources/SQLKit/Builders/SQLSecondaryPredicateGroupBuilder.swift b/Sources/SQLKit/Builders/Implementations/SQLSecondaryPredicateGroupBuilder.swift similarity index 100% rename from Sources/SQLKit/Builders/SQLSecondaryPredicateGroupBuilder.swift rename to Sources/SQLKit/Builders/Implementations/SQLSecondaryPredicateGroupBuilder.swift diff --git a/Sources/SQLKit/Builders/SQLSelectBuilder.swift b/Sources/SQLKit/Builders/Implementations/SQLSelectBuilder.swift similarity index 100% rename from Sources/SQLKit/Builders/SQLSelectBuilder.swift rename to Sources/SQLKit/Builders/Implementations/SQLSelectBuilder.swift diff --git a/Sources/SQLKit/Builders/SQLUnionBuilder.swift b/Sources/SQLKit/Builders/Implementations/SQLUnionBuilder.swift similarity index 100% rename from Sources/SQLKit/Builders/SQLUnionBuilder.swift rename to Sources/SQLKit/Builders/Implementations/SQLUnionBuilder.swift diff --git a/Sources/SQLKit/Builders/SQLUpdateBuilder.swift b/Sources/SQLKit/Builders/Implementations/SQLUpdateBuilder.swift similarity index 100% rename from Sources/SQLKit/Builders/SQLUpdateBuilder.swift rename to Sources/SQLKit/Builders/Implementations/SQLUpdateBuilder.swift diff --git a/Sources/SQLKit/Builders/SQLColumnUpdateBuilder.swift b/Sources/SQLKit/Builders/Prototypes/SQLColumnUpdateBuilder.swift similarity index 100% rename from Sources/SQLKit/Builders/SQLColumnUpdateBuilder.swift rename to Sources/SQLKit/Builders/Prototypes/SQLColumnUpdateBuilder.swift diff --git a/Sources/SQLKit/Builders/SQLJoinBuilder.swift b/Sources/SQLKit/Builders/Prototypes/SQLJoinBuilder.swift similarity index 100% rename from Sources/SQLKit/Builders/SQLJoinBuilder.swift rename to Sources/SQLKit/Builders/Prototypes/SQLJoinBuilder.swift diff --git a/Sources/SQLKit/Builders/SQLPartialResultBuilder.swift b/Sources/SQLKit/Builders/Prototypes/SQLPartialResultBuilder.swift similarity index 100% rename from Sources/SQLKit/Builders/SQLPartialResultBuilder.swift rename to Sources/SQLKit/Builders/Prototypes/SQLPartialResultBuilder.swift diff --git a/Sources/SQLKit/Builders/SQLPredicateBuilder.swift b/Sources/SQLKit/Builders/Prototypes/SQLPredicateBuilder.swift similarity index 100% rename from Sources/SQLKit/Builders/SQLPredicateBuilder.swift rename to Sources/SQLKit/Builders/Prototypes/SQLPredicateBuilder.swift diff --git a/Sources/SQLKit/Builders/SQLQueryBuilder.swift b/Sources/SQLKit/Builders/Prototypes/SQLQueryBuilder.swift similarity index 100% rename from Sources/SQLKit/Builders/SQLQueryBuilder.swift rename to Sources/SQLKit/Builders/Prototypes/SQLQueryBuilder.swift diff --git a/Sources/SQLKit/Builders/SQLQueryFetcher.swift b/Sources/SQLKit/Builders/Prototypes/SQLQueryFetcher.swift similarity index 100% rename from Sources/SQLKit/Builders/SQLQueryFetcher.swift rename to Sources/SQLKit/Builders/Prototypes/SQLQueryFetcher.swift diff --git a/Sources/SQLKit/Builders/SQLReturningBuilder.swift b/Sources/SQLKit/Builders/Prototypes/SQLReturningBuilder.swift similarity index 100% rename from Sources/SQLKit/Builders/SQLReturningBuilder.swift rename to Sources/SQLKit/Builders/Prototypes/SQLReturningBuilder.swift diff --git a/Sources/SQLKit/Builders/SQLSecondaryPredicateBuilder.swift b/Sources/SQLKit/Builders/Prototypes/SQLSecondaryPredicateBuilder.swift similarity index 100% rename from Sources/SQLKit/Builders/SQLSecondaryPredicateBuilder.swift rename to Sources/SQLKit/Builders/Prototypes/SQLSecondaryPredicateBuilder.swift diff --git a/Sources/SQLKit/Builders/SQLSubqeryClauseBuilder.swift b/Sources/SQLKit/Builders/Prototypes/SQLSubqueryClauseBuilder.swift similarity index 100% rename from Sources/SQLKit/Builders/SQLSubqeryClauseBuilder.swift rename to Sources/SQLKit/Builders/Prototypes/SQLSubqueryClauseBuilder.swift diff --git a/Sources/SQLKit/SQLDatabase.swift b/Sources/SQLKit/Database/SQLDatabase.swift similarity index 100% rename from Sources/SQLKit/SQLDatabase.swift rename to Sources/SQLKit/Database/SQLDatabase.swift diff --git a/Sources/SQLKit/SQLDatabaseReportedVersion.swift b/Sources/SQLKit/Database/SQLDatabaseReportedVersion.swift similarity index 100% rename from Sources/SQLKit/SQLDatabaseReportedVersion.swift rename to Sources/SQLKit/Database/SQLDatabaseReportedVersion.swift diff --git a/Sources/SQLKit/SQLDialect.swift b/Sources/SQLKit/Database/SQLDialect.swift similarity index 100% rename from Sources/SQLKit/SQLDialect.swift rename to Sources/SQLKit/Database/SQLDialect.swift diff --git a/Sources/SQLKit/SQLError.swift b/Sources/SQLKit/Deprecated/SQLError.swift similarity index 100% rename from Sources/SQLKit/SQLError.swift rename to Sources/SQLKit/Deprecated/SQLError.swift diff --git a/Sources/SQLKit/Query/SQLAlias.swift b/Sources/SQLKit/Expressions/Basics/SQLAlias.swift similarity index 100% rename from Sources/SQLKit/Query/SQLAlias.swift rename to Sources/SQLKit/Expressions/Basics/SQLAlias.swift diff --git a/Sources/SQLKit/Query/SQLColumnIdentifier.swift b/Sources/SQLKit/Expressions/Basics/SQLColumn.swift similarity index 100% rename from Sources/SQLKit/Query/SQLColumnIdentifier.swift rename to Sources/SQLKit/Expressions/Basics/SQLColumn.swift diff --git a/Sources/SQLKit/Query/SQLConstraint.swift b/Sources/SQLKit/Expressions/Basics/SQLConstraint.swift similarity index 100% rename from Sources/SQLKit/Query/SQLConstraint.swift rename to Sources/SQLKit/Expressions/Basics/SQLConstraint.swift diff --git a/Sources/SQLKit/Query/SQLDataType.swift b/Sources/SQLKit/Expressions/Basics/SQLDataType.swift similarity index 100% rename from Sources/SQLKit/Query/SQLDataType.swift rename to Sources/SQLKit/Expressions/Basics/SQLDataType.swift diff --git a/Sources/SQLKit/Query/SQLDirection.swift b/Sources/SQLKit/Expressions/Basics/SQLDirection.swift similarity index 100% rename from Sources/SQLKit/Query/SQLDirection.swift rename to Sources/SQLKit/Expressions/Basics/SQLDirection.swift diff --git a/Sources/SQLKit/Query/SQLDistinct.swift b/Sources/SQLKit/Expressions/Basics/SQLDistinct.swift similarity index 100% rename from Sources/SQLKit/Query/SQLDistinct.swift rename to Sources/SQLKit/Expressions/Basics/SQLDistinct.swift diff --git a/Sources/SQLKit/Query/SQLForeignKeyAction.swift b/Sources/SQLKit/Expressions/Basics/SQLForeignKeyAction.swift similarity index 100% rename from Sources/SQLKit/Query/SQLForeignKeyAction.swift rename to Sources/SQLKit/Expressions/Basics/SQLForeignKeyAction.swift diff --git a/Sources/SQLKit/Query/SQLNestedSubpathExpression.swift b/Sources/SQLKit/Expressions/Basics/SQLNestedSubpathExpression.swift similarity index 100% rename from Sources/SQLKit/Query/SQLNestedSubpathExpression.swift rename to Sources/SQLKit/Expressions/Basics/SQLNestedSubpathExpression.swift diff --git a/Sources/SQLKit/Query/SQLAlterColumnDefinitionType.swift b/Sources/SQLKit/Expressions/Clauses/SQLAlterColumnDefinitionType.swift similarity index 100% rename from Sources/SQLKit/Query/SQLAlterColumnDefinitionType.swift rename to Sources/SQLKit/Expressions/Clauses/SQLAlterColumnDefinitionType.swift diff --git a/Sources/SQLKit/Query/SQLColumnAssignment.swift b/Sources/SQLKit/Expressions/Clauses/SQLColumnAssignment.swift similarity index 100% rename from Sources/SQLKit/Query/SQLColumnAssignment.swift rename to Sources/SQLKit/Expressions/Clauses/SQLColumnAssignment.swift diff --git a/Sources/SQLKit/Query/SQLColumnConstraintAlgorithm.swift b/Sources/SQLKit/Expressions/Clauses/SQLColumnConstraintAlgorithm.swift similarity index 100% rename from Sources/SQLKit/Query/SQLColumnConstraintAlgorithm.swift rename to Sources/SQLKit/Expressions/Clauses/SQLColumnConstraintAlgorithm.swift diff --git a/Sources/SQLKit/Query/SQLColumnDefinition.swift b/Sources/SQLKit/Expressions/Clauses/SQLColumnDefinition.swift similarity index 100% rename from Sources/SQLKit/Query/SQLColumnDefinition.swift rename to Sources/SQLKit/Expressions/Clauses/SQLColumnDefinition.swift diff --git a/Sources/SQLKit/Query/SQLConflictAction.swift b/Sources/SQLKit/Expressions/Clauses/SQLConflictAction.swift similarity index 100% rename from Sources/SQLKit/Query/SQLConflictAction.swift rename to Sources/SQLKit/Expressions/Clauses/SQLConflictAction.swift diff --git a/Sources/SQLKit/Query/SQLConflictResolutionStrategy.swift b/Sources/SQLKit/Expressions/Clauses/SQLConflictResolutionStrategy.swift similarity index 100% rename from Sources/SQLKit/Query/SQLConflictResolutionStrategy.swift rename to Sources/SQLKit/Expressions/Clauses/SQLConflictResolutionStrategy.swift diff --git a/Sources/SQLKit/Query/SQLDropBehaviour.swift b/Sources/SQLKit/Expressions/Clauses/SQLDropBehaviour.swift similarity index 100% rename from Sources/SQLKit/Query/SQLDropBehaviour.swift rename to Sources/SQLKit/Expressions/Clauses/SQLDropBehaviour.swift diff --git a/Sources/SQLKit/Query/SQLEnumDataType.swift b/Sources/SQLKit/Expressions/Clauses/SQLEnumDataType.swift similarity index 100% rename from Sources/SQLKit/Query/SQLEnumDataType.swift rename to Sources/SQLKit/Expressions/Clauses/SQLEnumDataType.swift diff --git a/Sources/SQLKit/Query/SQLExcludedColumn.swift b/Sources/SQLKit/Expressions/Clauses/SQLExcludedColumn.swift similarity index 100% rename from Sources/SQLKit/Query/SQLExcludedColumn.swift rename to Sources/SQLKit/Expressions/Clauses/SQLExcludedColumn.swift diff --git a/Sources/SQLKit/Query/SQLForeignKey.swift b/Sources/SQLKit/Expressions/Clauses/SQLForeignKey.swift similarity index 100% rename from Sources/SQLKit/Query/SQLForeignKey.swift rename to Sources/SQLKit/Expressions/Clauses/SQLForeignKey.swift diff --git a/Sources/SQLKit/Query/SQLJoin.swift b/Sources/SQLKit/Expressions/Clauses/SQLJoin.swift similarity index 100% rename from Sources/SQLKit/Query/SQLJoin.swift rename to Sources/SQLKit/Expressions/Clauses/SQLJoin.swift diff --git a/Sources/SQLKit/Query/SQLJoinMethod.swift b/Sources/SQLKit/Expressions/Clauses/SQLJoinMethod.swift similarity index 100% rename from Sources/SQLKit/Query/SQLJoinMethod.swift rename to Sources/SQLKit/Expressions/Clauses/SQLJoinMethod.swift diff --git a/Sources/SQLKit/Query/SQLLockingClause.swift b/Sources/SQLKit/Expressions/Clauses/SQLLockingClause.swift similarity index 100% rename from Sources/SQLKit/Query/SQLLockingClause.swift rename to Sources/SQLKit/Expressions/Clauses/SQLLockingClause.swift diff --git a/Sources/SQLKit/Query/SQLOrderBy.swift b/Sources/SQLKit/Expressions/Clauses/SQLOrderBy.swift similarity index 100% rename from Sources/SQLKit/Query/SQLOrderBy.swift rename to Sources/SQLKit/Expressions/Clauses/SQLOrderBy.swift diff --git a/Sources/SQLKit/Query/SQLReturning.swift b/Sources/SQLKit/Expressions/Clauses/SQLReturning.swift similarity index 100% rename from Sources/SQLKit/Query/SQLReturning.swift rename to Sources/SQLKit/Expressions/Clauses/SQLReturning.swift diff --git a/Sources/SQLKit/Query/SQLTableConstraintAlgorithm.swift b/Sources/SQLKit/Expressions/Clauses/SQLTableConstraintAlgorithm.swift similarity index 100% rename from Sources/SQLKit/Query/SQLTableConstraintAlgorithm.swift rename to Sources/SQLKit/Expressions/Clauses/SQLTableConstraintAlgorithm.swift diff --git a/Sources/SQLKit/Query/SQLAlterEnum.swift b/Sources/SQLKit/Expressions/Queries/SQLAlterEnum.swift similarity index 100% rename from Sources/SQLKit/Query/SQLAlterEnum.swift rename to Sources/SQLKit/Expressions/Queries/SQLAlterEnum.swift diff --git a/Sources/SQLKit/Query/SQLAlterTable.swift b/Sources/SQLKit/Expressions/Queries/SQLAlterTable.swift similarity index 100% rename from Sources/SQLKit/Query/SQLAlterTable.swift rename to Sources/SQLKit/Expressions/Queries/SQLAlterTable.swift diff --git a/Sources/SQLKit/Query/SQLCreateEnum.swift b/Sources/SQLKit/Expressions/Queries/SQLCreateEnum.swift similarity index 100% rename from Sources/SQLKit/Query/SQLCreateEnum.swift rename to Sources/SQLKit/Expressions/Queries/SQLCreateEnum.swift diff --git a/Sources/SQLKit/Query/SQLCreateIndex.swift b/Sources/SQLKit/Expressions/Queries/SQLCreateIndex.swift similarity index 100% rename from Sources/SQLKit/Query/SQLCreateIndex.swift rename to Sources/SQLKit/Expressions/Queries/SQLCreateIndex.swift diff --git a/Sources/SQLKit/Query/SQLCreateTable.swift b/Sources/SQLKit/Expressions/Queries/SQLCreateTable.swift similarity index 100% rename from Sources/SQLKit/Query/SQLCreateTable.swift rename to Sources/SQLKit/Expressions/Queries/SQLCreateTable.swift diff --git a/Sources/SQLKit/Query/SQLCreateTrigger.swift b/Sources/SQLKit/Expressions/Queries/SQLCreateTrigger.swift similarity index 100% rename from Sources/SQLKit/Query/SQLCreateTrigger.swift rename to Sources/SQLKit/Expressions/Queries/SQLCreateTrigger.swift diff --git a/Sources/SQLKit/Query/SQLDelete.swift b/Sources/SQLKit/Expressions/Queries/SQLDelete.swift similarity index 100% rename from Sources/SQLKit/Query/SQLDelete.swift rename to Sources/SQLKit/Expressions/Queries/SQLDelete.swift diff --git a/Sources/SQLKit/Query/SQLDropEnum.swift b/Sources/SQLKit/Expressions/Queries/SQLDropEnum.swift similarity index 100% rename from Sources/SQLKit/Query/SQLDropEnum.swift rename to Sources/SQLKit/Expressions/Queries/SQLDropEnum.swift diff --git a/Sources/SQLKit/Query/SQLDropIndex.swift b/Sources/SQLKit/Expressions/Queries/SQLDropIndex.swift similarity index 100% rename from Sources/SQLKit/Query/SQLDropIndex.swift rename to Sources/SQLKit/Expressions/Queries/SQLDropIndex.swift diff --git a/Sources/SQLKit/Query/SQLDropTable.swift b/Sources/SQLKit/Expressions/Queries/SQLDropTable.swift similarity index 100% rename from Sources/SQLKit/Query/SQLDropTable.swift rename to Sources/SQLKit/Expressions/Queries/SQLDropTable.swift diff --git a/Sources/SQLKit/Query/SQLDropTrigger.swift b/Sources/SQLKit/Expressions/Queries/SQLDropTrigger.swift similarity index 100% rename from Sources/SQLKit/Query/SQLDropTrigger.swift rename to Sources/SQLKit/Expressions/Queries/SQLDropTrigger.swift diff --git a/Sources/SQLKit/Query/SQLInsert.swift b/Sources/SQLKit/Expressions/Queries/SQLInsert.swift similarity index 100% rename from Sources/SQLKit/Query/SQLInsert.swift rename to Sources/SQLKit/Expressions/Queries/SQLInsert.swift diff --git a/Sources/SQLKit/Query/SQLSelect.swift b/Sources/SQLKit/Expressions/Queries/SQLSelect.swift similarity index 100% rename from Sources/SQLKit/Query/SQLSelect.swift rename to Sources/SQLKit/Expressions/Queries/SQLSelect.swift diff --git a/Sources/SQLKit/Query/SQLUnion.swift b/Sources/SQLKit/Expressions/Queries/SQLUnion.swift similarity index 100% rename from Sources/SQLKit/Query/SQLUnion.swift rename to Sources/SQLKit/Expressions/Queries/SQLUnion.swift diff --git a/Sources/SQLKit/Query/SQLUpdate.swift b/Sources/SQLKit/Expressions/Queries/SQLUpdate.swift similarity index 100% rename from Sources/SQLKit/Query/SQLUpdate.swift rename to Sources/SQLKit/Expressions/Queries/SQLUpdate.swift diff --git a/Sources/SQLKit/SQLExpression.swift b/Sources/SQLKit/Expressions/SQLExpression.swift similarity index 100% rename from Sources/SQLKit/SQLExpression.swift rename to Sources/SQLKit/Expressions/SQLExpression.swift diff --git a/Sources/SQLKit/SQLSerializer.swift b/Sources/SQLKit/Expressions/SQLSerializer.swift similarity index 100% rename from Sources/SQLKit/SQLSerializer.swift rename to Sources/SQLKit/Expressions/SQLSerializer.swift diff --git a/Sources/SQLKit/SQLStatement.swift b/Sources/SQLKit/Expressions/SQLStatement.swift similarity index 100% rename from Sources/SQLKit/SQLStatement.swift rename to Sources/SQLKit/Expressions/SQLStatement.swift diff --git a/Sources/SQLKit/Query/SQLBinaryExpression.swift b/Sources/SQLKit/Expressions/Syntax/SQLBinaryExpression.swift similarity index 100% rename from Sources/SQLKit/Query/SQLBinaryExpression.swift rename to Sources/SQLKit/Expressions/Syntax/SQLBinaryExpression.swift diff --git a/Sources/SQLKit/Query/SQLBinaryOperator.swift b/Sources/SQLKit/Expressions/Syntax/SQLBinaryOperator.swift similarity index 100% rename from Sources/SQLKit/Query/SQLBinaryOperator.swift rename to Sources/SQLKit/Expressions/Syntax/SQLBinaryOperator.swift diff --git a/Sources/SQLKit/Query/SQLBind.swift b/Sources/SQLKit/Expressions/Syntax/SQLBind.swift similarity index 100% rename from Sources/SQLKit/Query/SQLBind.swift rename to Sources/SQLKit/Expressions/Syntax/SQLBind.swift diff --git a/Sources/SQLKit/Query/SQLFunction.swift b/Sources/SQLKit/Expressions/Syntax/SQLFunction.swift similarity index 100% rename from Sources/SQLKit/Query/SQLFunction.swift rename to Sources/SQLKit/Expressions/Syntax/SQLFunction.swift diff --git a/Sources/SQLKit/Query/SQLGroupExpression.swift b/Sources/SQLKit/Expressions/Syntax/SQLGroupExpression.swift similarity index 100% rename from Sources/SQLKit/Query/SQLGroupExpression.swift rename to Sources/SQLKit/Expressions/Syntax/SQLGroupExpression.swift diff --git a/Sources/SQLKit/Query/SQLIdentifier.swift b/Sources/SQLKit/Expressions/Syntax/SQLIdentifier.swift similarity index 100% rename from Sources/SQLKit/Query/SQLIdentifier.swift rename to Sources/SQLKit/Expressions/Syntax/SQLIdentifier.swift diff --git a/Sources/SQLKit/Query/SQLList.swift b/Sources/SQLKit/Expressions/Syntax/SQLList.swift similarity index 100% rename from Sources/SQLKit/Query/SQLList.swift rename to Sources/SQLKit/Expressions/Syntax/SQLList.swift diff --git a/Sources/SQLKit/Query/SQLLiteral.swift b/Sources/SQLKit/Expressions/Syntax/SQLLiteral.swift similarity index 100% rename from Sources/SQLKit/Query/SQLLiteral.swift rename to Sources/SQLKit/Expressions/Syntax/SQLLiteral.swift diff --git a/Sources/SQLKit/Query/SQLQueryString.swift b/Sources/SQLKit/Expressions/Syntax/SQLQueryString.swift similarity index 100% rename from Sources/SQLKit/Query/SQLQueryString.swift rename to Sources/SQLKit/Expressions/Syntax/SQLQueryString.swift diff --git a/Sources/SQLKit/Query/SQLRaw.swift b/Sources/SQLKit/Expressions/Syntax/SQLRaw.swift similarity index 100% rename from Sources/SQLKit/Query/SQLRaw.swift rename to Sources/SQLKit/Expressions/Syntax/SQLRaw.swift diff --git a/Sources/SQLKit/SQLQueryEncoder.swift b/Sources/SQLKit/Rows/SQLQueryEncoder.swift similarity index 100% rename from Sources/SQLKit/SQLQueryEncoder.swift rename to Sources/SQLKit/Rows/SQLQueryEncoder.swift diff --git a/Sources/SQLKit/SQLRow.swift b/Sources/SQLKit/Rows/SQLRow.swift similarity index 100% rename from Sources/SQLKit/SQLRow.swift rename to Sources/SQLKit/Rows/SQLRow.swift diff --git a/Sources/SQLKit/SQLRowDecoder.swift b/Sources/SQLKit/Rows/SQLRowDecoder.swift similarity index 99% rename from Sources/SQLKit/SQLRowDecoder.swift rename to Sources/SQLKit/Rows/SQLRowDecoder.swift index 4dbd98af..e99bd041 100644 --- a/Sources/SQLKit/SQLRowDecoder.swift +++ b/Sources/SQLKit/Rows/SQLRowDecoder.swift @@ -17,7 +17,6 @@ public struct SQLRowDecoder { public enum KeyDecodingStrategy { case useDefaultKeys - // converts rows in snake_case to from coding keys in camelCase to case convertFromSnakeCase case custom(([CodingKey]) -> CodingKey) }