{"id":21517833,"url":"https://github.com/brokenhandsio/steampress-fluent-mysql","last_synced_at":"2025-07-22T20:04:37.452Z","repository":{"id":81528265,"uuid":"229772576","full_name":"brokenhandsio/steampress-fluent-mysql","owner":"brokenhandsio","description":"Fluent MySQL adapters for SteamPress","archived":false,"fork":false,"pushed_at":"2020-05-18T15:01:39.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-17T18:54:22.060Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brokenhandsio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"0xTim"}},"created_at":"2019-12-23T14:55:36.000Z","updated_at":"2020-05-18T15:01:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"cf5ebac5-a364-4612-b1c4-857cea49178e","html_url":"https://github.com/brokenhandsio/steampress-fluent-mysql","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/brokenhandsio/steampress-fluent-mysql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brokenhandsio%2Fsteampress-fluent-mysql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brokenhandsio%2Fsteampress-fluent-mysql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brokenhandsio%2Fsteampress-fluent-mysql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brokenhandsio%2Fsteampress-fluent-mysql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brokenhandsio","download_url":"https://codeload.github.com/brokenhandsio/steampress-fluent-mysql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brokenhandsio%2Fsteampress-fluent-mysql/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266563915,"owners_count":23948689,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-24T00:45:31.096Z","updated_at":"2025-07-22T20:04:37.444Z","avatar_url":"https://github.com/brokenhandsio.png","language":"Swift","funding_links":["https://github.com/sponsors/0xTim"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://user-images.githubusercontent.com/9938337/29742058-ed41dcc0-8a6f-11e7-9cfc-680501cdfb97.png\" alt=\"SteamPress\"\u003e\n    \u003cbr\u003e\n    \u003cbr\u003e\n    \u003ca href=\"https://swift.org\"\u003e\n        \u003cimg src=\"http://img.shields.io/badge/Swift-5.1-brightgreen.svg\" alt=\"Language\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/brokenhandsio/steampress-fluent-mysql/actions\"\u003e\n        \u003cimg src=\"https://github.com/brokenhandsio/steampress-fluent-mysql/workflows/CI/badge.svg?branch=master\" alt=\"Build Status\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://codecov.io/gh/brokenhandsio/steampress-fluent-mysql\"\u003e\n        \u003cimg src=\"https://codecov.io/gh/brokenhandsio/steampress-fluent-mysql/branch/master/graph/badge.svg\" alt=\"Code Coverage\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://raw.githubusercontent.com/brokenhandsio/steampress-fluent-mysql/master/LICENSE\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg\" alt=\"MIT License\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\nSteampress Fluent MySQL provides Fluent MySQL adapters for SteamPress to allow you to use SteamPress with a MySQL database.\n\n# Usage:\n\nAdd the package to your **Package.swift** dependencies:\n\n```swift\ndependencies: [\n    ...,\n    .package(name: \"SteampressFluentMysql\", url: \"https://github.com/brokenhandsio/steampress-fluent-mysql.git\", from: \"1.0.0\"),\n]\n```\n\nIn **configure.swift** add the SteamPress Fluent MySQL provider:\n\n```swift\nimport SteampressFluentMysql\n\n// ...\n\nlet provider = SteamPressFluentMysqlProvider()\ntry services.register(provider)\n```\n\nYou also need to add the migrations for the different database models to your `MigrationConfig`:\n\n```swift\nvar migrations = MigrationConfig()\n// ...\nmigrations.add(model: BlogTag.self, database: .mysql)\nmigrations.add(model: BlogUser.self, database: .mysql)\nmigrations.add(model: BlogPost.self, database: .mysql)\nmigrations.add(model: BlogPostTagPivot.self, database: .mysql)\n// This will create an admin user so you can log in! The password will be printed out when created.\nmigrations.add(migration: BlogAdminUser.self, database: .mysql)\nservices.register(migrations)\n```\n\nThis ensures the tables are created for use next time your app boots up.\n\nFor details on how to use SteamPress and the required templates see the main [SteamPress README](https://github.com/brokenhandsio/SteamPress/blob/master/README.md).\n\n## Configuration\n\nYou can configure the provider with the following optional configuration options:\n\n* `blogPath` - the path to add the blog to. For instance, if you pass in `\"blog\"`, your blog will be accessible at http://mysite.com/blog/, or leave this out your blog will be added to the root of your site (i.e. http://mysite.com/)\n* `feedInformation`: Information to vend to the RSS and Atom feeds. Defaults to empty information.\n* `postsPerPage`: The number of posts to show per page on the main index page of the blog and the user and tag pages. Defaults to 10.\n* `enableAuthorsPages`: Flag used to determine whether to publicly expose the authors endpoints or not. Defaults to true.\n* `enableTagsPages`: Flag used to determine whether to publicy expose the tags endpoints or not. Defaults to true.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrokenhandsio%2Fsteampress-fluent-mysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrokenhandsio%2Fsteampress-fluent-mysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrokenhandsio%2Fsteampress-fluent-mysql/lists"}