serpro69 / kotlin-faker

Port of a popular ruby faker gem written in kotlin. Generate realistically looking fake data such as names, addresses, banking details, and many more, that can be used for testing and data anonymization purposes.
https://serpro69.github.io/kotlin-faker/
MIT License
468 stars 41 forks source link

Feature: Create a Databases provider #222

Closed mboisnard closed 6 months ago

mboisnard commented 6 months ago

Adds a dedicated Databases Provider in order to fake data types, engine, collation and objectId:

DatabasesFaker Providers:

RandomService methods:

This implementation is not perfect, especially on the additions made to the RandomService class (date generation, arbitrary pastDate min value, arbitrary futureDate max value, ...) but can serve as support for the discussion :)

Closes #221

serpro69 commented 6 months ago

Hey again @mboisnard :wave: ,

Thanks a lot for your contribution! This looks great! I'll go over the changes in more detail during the weekend when I have some free time on my hands.

mboisnard commented 6 months ago

@serpro69 I think I made all the changes you suggested in the review, don't hesitate to tell me if I missed something :)

serpro69 commented 6 months ago

Merged :rocket: Thanks for spending the time to contribute! Snapshot with this change should be available shortly. Will try to make a new RC version tomorrow.

serpro69 commented 6 months ago

Sorry, was busy at work and wanted to figure out versioning for faker submodules (ref: #225) before making a new release candidate version, but the new RC versions are finally out and include this change as well. Hopefully you were able to use the snapshot in the meantime.