You can integrate PostgresClientKit into your project using Swift Package Manager (Xcode or standalone), or CocoaPods.
Xcode Project (Package Dependency)
- Select File > Add Packages...
- Enter the URL:
https://github.com/codewinsdotcom/PostgresClientKit - Set version requirements (e.g.,
Up To Next Major Version starting from 1.0.0). - Click Add Package.
Standalone Swift Package (Package.swift)
Add the package to your dependencies and reference the product in your targets:
dependencies: [
.package(url: "https://github.com/codewinsdotcom/PostgresClientKit", from: "1.0.0"),
],
targets: [
.target(
name: "MyProject",
dependencies: ["PostgresClientKit"]),
]
CocoaPods
Add the following to your Podfile:
target 'MyApp' do
pod 'PostgresClientKit', '~> 1.0'
end
Then run pod install.
After installation, import the library in your Swift files:
import PostgresClientKit