Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mention that PonyORM works with MariaDB as well #708

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dlenski
Copy link

@dlenski dlenski commented Mar 14, 2024

Because MySQL and MariaDB use the same on-the-wire protocol and most SQL-level features are identical, PonyORM also works with MariaDB, using the MySQL provider.

Tested on MariaDB 10.6.14.

After creating a 'test' database, and a user 'whoever' with access to that database (GRANT ALL PRIVILEGES ON test.* TO whoever), the "first steps" from https://docs.ponyorm.org/firststeps.html work fine, e.g.:

    from pony.orm import *
    db=Database()
    class Person(db.Entity):
        name=Required(str)
        age=Required(int)
    db.bind(provider='mysql', user='whoever', password='foobar', db='test')
    db.generate_mapping(create_tables=True)

@dlenski
Copy link
Author

dlenski commented Mar 14, 2024

I'm aware of #270 (and its duplicate #548), which show that JSON manipulation does not yet work correctly with MariaDB.

Because MySQL and MariaDB use the same on-the-wire protocol and most
SQL-level features are identical, PonyORM also works with MariaDB, using the
MySQL provider.

Tested on MariaDB 10.6.14.

After creating a 'test' database, and a user 'whoever' with access to that
database (`GRANT ALL PRIVILEGES ON test.* TO whoever`), the "first steps"
from https://docs.ponyorm.org/firststeps.html work fine, e.g.:

    from pony.orm import *
    db=Database()
    class Person(db.Entity):
        name=Required(str)
        age=Required(int)
    db.bind(provider='mysql', user='whoever', password='foobar', db='test')
    db.generate_mapping(create_tables=True)
@ottok
Copy link

ottok commented Apr 26, 2024

@kozlovsky This has 10 +1's - could you please considering merging this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants