Loki relational database (MariaDB, PostgreSQL...) workaround

Hello, I know that Loki does not support relational databases for log storage but I need to do it because of the project purpose… Is there any workaround to store logs in a relational database?