Details
DatastoreResourceDetails
¶
Bases: DomainObject
Object for holding datastore resource details, currently just the columns at each version.
Source code in ckanext/versioned_datastore/model/details.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | |
get_columns(validate=None, skip_empty=True, fix_names=True)
¶
Retrieve the columns contained in this resource's version.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
validate
|
for backwards compatibility; sets both skip_empty and fix_names |
None
|
|
skip_empty
|
if True, remove falsey (empty strings, Nones) columns (default True) |
True
|
|
fix_names
|
if True, change column names to match datastore/splitgill (default True) |
True
|
Returns:
| Type | Description |
|---|---|
|
a list of column names in the order they were in the original data source |
Source code in ckanext/versioned_datastore/model/details.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | |