planetarium / libplanet

Blockchain in C#/.NET for on-chain, decentralized gaming
https://docs.libplanet.io/
GNU Lesser General Public License v2.1
506 stars 142 forks source link

Define a common method to get an `IStore` instance from a string #1573

Closed dahlia closed 1 year ago

dahlia commented 2 years ago

There are methods doing the similar thing in several places:

What they do is to instantiate an implementation of IStore from a given string. Not only for getting rid of code duplication, but also for establishing a standard-ish format to referring Libplanet stores[^1], it's good to have a common method to do this. If we have a shared format for it, we can utilize it elsewhere as well, for example, configuration files.

[^1]: Think of JDBC URLs or ODBC connection strings.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.