Repository: MihaelIsaev/SwifQL Branch: master Commit: 465f7a5766ac Files: 202 Total size: 443.7 KB Directory structure: gitextract_0k67_6b0/ ├── .github/ │ └── workflows/ │ └── test.yml ├── .gitignore ├── LICENSE ├── Package.swift ├── README.md ├── Sources/ │ └── SwifQL/ │ ├── Alias.swift │ ├── Builders/ │ │ ├── CaseWhen.swift │ │ ├── Distinct.swift │ │ ├── GenericTableSelector.swift │ │ ├── NewColumn.swift │ │ ├── PostgresArray.swift │ │ ├── PostgresJsonObject.swift │ │ ├── QueryBuilder.swift │ │ ├── Schema/ │ │ │ ├── CreateSchemaBuilder.swift │ │ │ ├── DropSchemaBuilder.swift │ │ │ ├── UpdateSchemaChangeOwner.swift │ │ │ └── UpdateSchemaRename.swift │ │ ├── SwifQLJoinBuilder.swift │ │ ├── SwifQLSelectBuilder.swift │ │ ├── Table/ │ │ │ ├── CreateTableBuilder.swift │ │ │ ├── DropTableBuilder.swift │ │ │ └── UpdateTableBuilder.swift │ │ ├── Union.swift │ │ └── With.swift │ ├── Codable.swift │ ├── Column.swift │ ├── Constraint.swift │ ├── Dialect/ │ │ ├── Dialect+MySQL.swift │ │ ├── Dialect+Postgres.swift │ │ └── Dialect.swift │ ├── Enum.swift │ ├── Extensions/ │ │ ├── Array+SwifQLable.swift │ │ ├── Column+AutoType.swift │ │ ├── Decodable+Table.swift │ │ └── StringExtensions.swift │ ├── ExtractFieldValue.swift │ ├── FluentKitFieldable.swift │ ├── FormattedKeyPath.swift │ ├── Formatter.swift │ ├── Functions/ │ │ ├── Functions+Array.swift │ │ ├── Functions+General.swift │ │ ├── Functions+MySQL.swift │ │ ├── Functions+Numeric.swift │ │ ├── Functions+PostgresBool.swift │ │ ├── Functions+PostgresJSON.swift │ │ ├── Functions+PostgresJSONB.swift │ │ ├── Functions+PostgresSeries.swift │ │ ├── Functions+PostgresTime.swift │ │ ├── Functions+String.swift │ │ ├── Functions+TextSearch.swift │ │ ├── Functions+Window.swift │ │ └── Functions.swift │ ├── HybridOperator.swift │ ├── IndexItem.swift │ ├── IndexType.swift │ ├── KeyPath.swift │ ├── Keypathable.swift │ ├── Operators.swift │ ├── Parts/ │ │ ├── AliasPart.swift │ │ ├── ArrayPart.swift │ │ ├── BoolPart.swift │ │ ├── ColumnPart.swift │ │ ├── DatePart.swift │ │ ├── HybridOperatorPart.swift │ │ ├── KeyPathPart.swift │ │ ├── NullPart.swift │ │ ├── OperatorPart.swift │ │ ├── SafeValuePart.swift │ │ ├── TablePart.swift │ │ ├── TableWithAliasPart.swift │ │ └── UnsafeValuePart.swift │ ├── Path/ │ │ ├── Path+Column.swift │ │ ├── Path+Schema.swift │ │ ├── Path+SchemaWithTable.swift │ │ ├── Path+SchemaWithTableAndColumn.swift │ │ ├── Path+Table.swift │ │ ├── Path+TableWithColumn.swift │ │ └── Path.swift │ ├── Predicates.swift │ ├── Prepared.swift │ ├── QueryBuilderable.swift │ ├── QueryParts.swift │ ├── ReferentialAction.swift │ ├── ResultBuilders/ │ │ └── SwifQLableResultBuilder.swift │ ├── Schema.swift │ ├── Schemable.swift │ ├── SplittedQuery.swift │ ├── SwifQL.swift │ ├── SwifQLable+Parts/ │ │ ├── SwifQLable+Action.swift │ │ ├── SwifQLable+Add.swift │ │ ├── SwifQLable+AddQuery.swift │ │ ├── SwifQLable+After.swift │ │ ├── SwifQLable+All.swift │ │ ├── SwifQLable+Alter.swift │ │ ├── SwifQLable+And.swift │ │ ├── SwifQLable+Any.swift │ │ ├── SwifQLable+As.swift │ │ ├── SwifQLable+Asterisk.swift │ │ ├── SwifQLable+Before.swift │ │ ├── SwifQLable+Begin.swift │ │ ├── SwifQLable+Between.swift │ │ ├── SwifQLable+Cascade.swift │ │ ├── SwifQLable+Check.swift │ │ ├── SwifQLable+Column.swift │ │ ├── SwifQLable+Commit.swift │ │ ├── SwifQLable+Conflict.swift │ │ ├── SwifQLable+Constraint.swift │ │ ├── SwifQLable+Create.swift │ │ ├── SwifQLable+Default.swift │ │ ├── SwifQLable+Delete.swift │ │ ├── SwifQLable+Distinct.swift │ │ ├── SwifQLable+Do.swift │ │ ├── SwifQLable+Drop.swift │ │ ├── SwifQLable+End.swift │ │ ├── SwifQLable+Epoch.swift │ │ ├── SwifQLable+Exists.swift │ │ ├── SwifQLable+Filter.swift │ │ ├── SwifQLable+From.swift │ │ ├── SwifQLable+Fulltext.swift │ │ ├── SwifQLable+Function.swift │ │ ├── SwifQLable+GroupBy.swift │ │ ├── SwifQLable+Having.swift │ │ ├── SwifQLable+ILike.swift │ │ ├── SwifQLable+If.swift │ │ ├── SwifQLable+In.swift │ │ ├── SwifQLable+InsertInto.swift │ │ ├── SwifQLable+Interval.swift │ │ ├── SwifQLable+IsNotNull.swift │ │ ├── SwifQLable+IsNull.swift │ │ ├── SwifQLable+Items.swift │ │ ├── SwifQLable+Join.swift │ │ ├── SwifQLable+Key.swift │ │ ├── SwifQLable+Like.swift │ │ ├── SwifQLable+Limit.swift │ │ ├── SwifQLable+No.swift │ │ ├── SwifQLable+Not.swift │ │ ├── SwifQLable+NotBetween.swift │ │ ├── SwifQLable+NotExists.swift │ │ ├── SwifQLable+NotILike.swift │ │ ├── SwifQLable+NotIn.swift │ │ ├── SwifQLable+NotLike.swift │ │ ├── SwifQLable+Nothing.swift │ │ ├── SwifQLable+Null.swift │ │ ├── SwifQLable+Offset.swift │ │ ├── SwifQLable+On.swift │ │ ├── SwifQLable+Or.swift │ │ ├── SwifQLable+OrderBy.swift │ │ ├── SwifQLable+Over.swift │ │ ├── SwifQLable+Overlaps.swift │ │ ├── SwifQLable+Owner.swift │ │ ├── SwifQLable+PartitionBy.swift │ │ ├── SwifQLable+Primary.swift │ │ ├── SwifQLable+Raw.swift │ │ ├── SwifQLable+References.swift │ │ ├── SwifQLable+Rename.swift │ │ ├── SwifQLable+Restrict.swift │ │ ├── SwifQLable+Return.swift │ │ ├── SwifQLable+Returning.swift │ │ ├── SwifQLable+Rollback.swift │ │ ├── SwifQLable+Schema.swift │ │ ├── SwifQLable+Select.swift │ │ ├── SwifQLable+Semicolon.swift │ │ ├── SwifQLable+Set.swift │ │ ├── SwifQLable+Space.swift │ │ ├── SwifQLable+Subscript.swift │ │ ├── SwifQLable+Table.swift │ │ ├── SwifQLable+Timestamp.swift │ │ ├── SwifQLable+To.swift │ │ ├── SwifQLable+Type.swift │ │ ├── SwifQLable+Union.swift │ │ ├── SwifQLable+Unique.swift │ │ ├── SwifQLable+Update.swift │ │ ├── SwifQLable+Value.swift │ │ ├── SwifQLable+Values.swift │ │ ├── SwifQLable+Where.swift │ │ ├── SwifQLable+WhereExists.swift │ │ ├── SwifQLable+WhereNotExists.swift │ │ ├── SwifQLable+Window.swift │ │ └── SwifQLable+With.swift │ ├── SwifQLable.swift │ ├── SwifQLableArraySeparator.swift │ ├── Table.swift │ ├── TableAlias.swift │ ├── Type+Autodetect.swift │ ├── Type+SwifQLable.swift │ ├── Type.swift │ └── _Todo.swift └── Tests/ └── SwifQLTests/ ├── BuilderTests.swift ├── CaseTests.swift ├── DirectiveTests.swift ├── ExistsTests.swift ├── FnTests.swift ├── FromTests.swift ├── JsonTests.swift ├── OrderTests.swift ├── OtherTests.swift ├── PredicateTest.swift ├── SelectTests.swift ├── SubqueryTests.swift ├── SwifQLTestCase.swift ├── TableEncoding.swift └── WithTests.swift ================================================ FILE CONTENTS ================================================ ================================================ FILE: .github/workflows/test.yml ================================================ name: test on: [push, pull_request] jobs: swift_6_0: container: swift:6.0 runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - run: swift test ================================================ FILE: .gitignore ================================================ Packages .build .DS_Store *.xcodeproj DerivedData/ Package.resolved .swiftpm ================================================ FILE: LICENSE ================================================ MIT License Copyright (c) 2018 Mihael Isaev Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: Package.swift ================================================ // swift-tools-version:6.0 import PackageDescription let package = Package( name: "SwifQL", platforms: [ .macOS(.v10_15) ], products: [ // 💎 Swift lib that gives an ability to build complex raw SQL-queries in strong-type declarative way .library(name: "SwifQL", targets: ["SwifQL"]), ], dependencies: [], targets: [ .target(name: "SwifQL", dependencies: []), .testTarget(name: "SwifQLTests", dependencies: [.target(name: "SwifQL")]), ], swiftLanguageModes: [.v5] ) ================================================ FILE: README.md ================================================ [](http://mihaelisaev.com)