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

Add docs clarifying compatibility with MariaDB #2858

Merged
merged 1 commit into from
Mar 15, 2024

Conversation

robinnewhouse
Copy link
Contributor

Peewee is compatible with MariaDB Server. Add clarifying notes in the documentation, including logo, etc.

Testing

docker run -d -p 3306:3306 --name mariadb_container -e MYSQL_ROOT_PASSWORD=password mariadb
>>> from peewee import MySQLDatabase
>>> database = MySQLDatabase('information_schema', user='root', password='password', host='127.0.0.1', port=3306)
>>> database.connect()
True
>>> version_query = database.execute_sql('SELECT VERSION()')
>>> print(version_query.fetchone()[0])
11.3.2-MariaDB-1:11.3.2+maria~ubu2204
>>> database.close()
True

Peewee is compatible with MariaDB Server. Add clarifying notes in the
documentation, including logo, etc.

Testing
```
docker run -d -p 3306:3306 --name mariadb_container -e MYSQL_ROOT_PASSWORD=password mariadb
```

```
>>> from peewee import MySQLDatabase
>>> database = MySQLDatabase('information_schema', user='root', password='password', host='127.0.0.1', port=3306)
>>> database.connect()
True
>>> version_query = database.execute_sql('SELECT VERSION()')
>>> print(version_query.fetchone()[0])
11.3.2-MariaDB-1:11.3.2+maria~ubu2204
>>> database.close()
True
```
@coleifer
Copy link
Owner

We don't explicitly mention this because it should already be quite obvious to anyone who uses MariaDB. They speak the same wire protocol and use the same client libraries, so I don't think anything special is needed here.

@coleifer coleifer closed this Mar 15, 2024
@coleifer coleifer reopened this Mar 15, 2024
@coleifer coleifer merged commit f8b225c into coleifer:master Mar 15, 2024
@coleifer
Copy link
Owner

Eh, what the heck, I'll just clean it up a bit. Thanks.

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