Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement a minimal config object #3

Open
ax1 opened this issue Jul 5, 2021 · 0 comments
Open

Implement a minimal config object #3

ax1 opened this issue Jul 5, 2021 · 0 comments

Comments

@ax1
Copy link
Owner

ax1 commented Jul 5, 2021

new Db(file,{options})

where one of the option is the name of the id field, by default id, but it could be _id or name or whatever.

Note that this is really optional, because currently, we do not need any config values and if we start with that we would end up with several config params (and I prefer standard conventions over config because it is straightforward to use it without digging in documentation every time.

The shorter the doc, the better. Look at a1-server, even if the docum is pretty small for a full http server (and that has been difficult to achieve), it is big to my eyes.

@ax1 ax1 added the enhancement label Jul 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant