A library to access PostgreSQL database by codable models.
- Abstract CRUD interfact (optional)
- CRUD and Version migration
Specify dependency in Package.swift
by adding this:
.package(url: "https://github.com/kelvinjjwong/PostgresModelFactory.git", .upToNextMajor(from: "1.0.11"))
In targets
section, add PostgresModelFactory
to dependencies
list:
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.target(
name: "MyApp",
dependencies: ["PostgresClientKit", "AnotherLibrary"]),
],
Then run swift build
to download and integrate the package.
Use CocoaPods to install PostgresModelFactory
by adding it to Podfile
:
pod 'PostgresModelFactory', '~> 1.0.11'
Then run pod install
to download and integrate the package.
- PostgresClientKit: to manage data in PostgreSQL database (Apache Licence 2.0)
- LoggerFactory (MIT License)