-
Notifications
You must be signed in to change notification settings - Fork 11
Labels
function:accessorAccessor functions schema(), resource(), resource_names()Accessor functions schema(), resource(), resource_names()
Milestone
Description
With #262 we plan to introduce a version()
, a function that doesn't start with a verb. This is similar to some camtrapdp functions (version()
, deployments()
, etc.). The functions have the advantage that they can have an equivalent set function version()<-
.
Frictionless currently has other verb-less functions, mainly resources()
(and also example_package()
and the private locale()
, col_types()
, ...).
For consistency, I think we then need:
version() # new
version()<- # new
resources()
schema() # currently not the case
create_schema() # creates a schema from a data frame, doesn't "get" it
The alternative is:
get_version() # new
set_version() # new
get_resources() # currently not the case
get_schema()
create_schema() # creates a schema from a data frame, doesn't "get" it
That alternative is less appealing to me. @PietrH @sannegovaert @damianooldoni thoughts?
If we implement this:
- Rename
get_schema()
toschema()
- Deprecate
get_schema()
- Rename private function
get_resource()
toresource()
- Change description for GitHub issue label
function:get
Metadata
Metadata
Assignees
Labels
function:accessorAccessor functions schema(), resource(), resource_names()Accessor functions schema(), resource(), resource_names()