Does someone know's a lib like this one or similar, but more updated? https://github.com/proullon/ramsql

I need a lib to mock a Mysql table so i can implement on my automated tests.

This lib would fit perfectly but it doesn't implement some lexeme from the sql such as sql aliases, some mysql built-in functions.

  • Probably not the same and a bit too heavy but what if you start a docker container with a mysql database?
    – jmizv
    Aug 2, 2022 at 7:16
  • @jmizv It would work but it would take a long time to process tests and i would have to manually clean my database after each test to keep an isolated test environment.
    – Arthur
    Aug 2, 2022 at 10:34
  • 1
    I've used this lib github.com/dolthub/go-mysql-server and it work perfectly.
    – Arthur
    Aug 2, 2022 at 19:23
  • Maybe you can add this as an answer to your own question?
    – jmizv
    Aug 3, 2022 at 8:11

1 Answer 1


After some digging and researches I've endup using this lib https://github.com/dolthub/go-mysql-server and it works perfectly.

  • Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
    – Community Bot
    Aug 3, 2022 at 13:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.