Closed tweenietomatoes closed 2 years ago
@tweenietomatoes you should be able to use the mysql driver and adapter with MariaDB
Well i am trying this:
results = Data.all().select(paginate=1)
However i'm getting all result instead of single result.
@tweenietomatoes as explained in the documentation, paginate=1
will simply return the first page, if you want a single record you should use paginate=(1,1)
or limitby=(0,1)
.
Also, selection always returns a Rows
object, you may want to use the .first()
method in case you want a single record.
Currently we can't use MariaDB connector with emmett orm. Is it possible to add mariadb support?