Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

v1.0.11-beta

Pre-release
Pre-release
Compare
Choose a tag to compare
@SKevo18 SKevo18 released this 17 Nov 18:33
· 29 commits to main since this release

This update adds support for database manipulations. This is more of an "experimental" release - bugs will be squashed before v1.1 (stable) is released.

pyFlarum was basically split into two things: client and database

  • client has all the stuff that you already know. It allows you to manipulate with Flarum's REST API.
  • database is new and allows you to connect to a database server-side & query it.

Disclaimer: Database support is still new and in beta (as the rest of this library anyways).

Database has no support for extensions that are not included in Flarum by default. This is because it is very difficult to maintain the support
for all the different columns that extensions create - when pyFlarum defines/doesn't define a column that is not/is in the database, it breaks.

It is also technically not possible to monkey-patch database properties the same way it is possible to do in FlarumUser.

My vision about the database support is to provide an easy way to create migration scripts to Flarum. You can see my other repository for my upcoming migration scripts.

Contributions to both the migrations and this project are welcome!

Full Changelog: v1.0.10-beta...v1.0.11-beta