couchdb
couchdb copied to clipboard
Create couch_lib application
Overview
This is a cherry-pick of a https://github.com/apache/couchdb/commit/845f917e35005a84ee790cd9cb9918d0b5be25ef from main
into 3.x
.
Testing recommendations
Usual ./configure && make
would be sufficient since this commit doesn't provide new functionality.
Related Issues or Pull Requests
- https://github.com/apache/couchdb/pull/3529
Checklist
- [x] Code is written and works correctly
- [ ] Changes are covered by tests
- [ ] Any new configurable parameters are documented in
rel/overlay/etc/default.ini
- [ ] A PR for documentation changes has been made in https://github.com/apache/couchdb-documentation
Wonder if it would make sense to add/move some functions to it as it seems a bit odd to commit an empty application. Or, do you think it's better to first have the app first, then plan on moving helper functions into it?
Just afraid most committers won't even know about it and will just keep adding functions to couch_util
and the app will just stay empty for quite a while.
Wonder if it would make sense to add/move some functions to it as it seems a bit odd to commit an empty application. Or, do you think it's better to first have the app first, then plan on moving helper functions into it?
Just afraid most committers won't even know about it and will just keep adding functions to
couch_util
and the app will just stay empty for quite a while.
The original PR https://github.com/apache/couchdb/pull/3529 contained some functions.
-
couch_lib_parse:parse_boolean/1
- parses given string or binary into Erlang'sboolean()
type -
couch_lib_parse:parse_integer/1
- parses given string as Erlang'sinteger()
type -
couch_lib_parse:parse_non_neg_integer/1
- parses given string as Erlang'snon_neg_integer()
type ([0..infinity)
)
However I was afraid pulling them here since there is no immediate need in them.
There is nothing in couch_lib, what is the value of this work?