MariaDB >= v10.1 offers a sequence engine so there should be a dialect which makes use of it. https://mariadb.com/kb/en/mariadb/sequence/