mirror of
https://github.com/coleifer/peewee.git
synced 2026-05-06 07:56:41 -04:00
0b978aa8da
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
```
664 B
48x48px
664 B
48x48px