Created
June 27, 2018 16:06
-
-
Save azamsharp/45861e41aba92672985396854a8c9e81 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import FluentPostgreSQL | |
| try services.register(FluentPostgreSQLProvider()) | |
| /// Register the configured SQLite database to the database config. | |
| var databases = DatabasesConfig() | |
| let databaseConfig = PostgreSQLDatabaseConfig(hostname: "localhost", username: "postgres", database: "blog") | |
| let database = PostgreSQLDatabase(config: databaseConfig) | |
| databases.add(database: database, as: .psql) | |
| services.register(databases) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment