CreateTestData
struct CreateTestData : AsyncMigration
A Migration
that seeds the db with test data. Once we have clients that can post data, we can get rid of this file.
-
prepare(on:
Asynchronous) Declaration
Swift
func prepare(on database: Database) async throws
-
revert(on:
Asynchronous) Declaration
Swift
func revert(on database: Database) async throws
-
createTestTwarrts(on:
Asynchronous) Declaration
Swift
func createTestTwarrts(on database: Database) async throws
-
createTestForumPosts(on:
Asynchronous) Declaration
Swift
func createTestForumPosts(on database: Database) async throws
-
createTestLargeForumPosts(on:
Asynchronous) Declaration
Swift
func createTestLargeForumPosts(on database: Database) async throws
-
Declaration
Swift
let longPost: String
-
createTestLargeSeamailThread(on:
Asynchronous) Declaration
Swift
func createTestLargeSeamailThread(on database: Database) async throws