addCultivationToCatalogue
@svenvw/fdm-source / fdm-core/src / addCultivationToCatalogue
Function: addCultivationToCatalogue()
addCultivationToCatalogue(
fdm
,properties
):Promise
<void
>
Defined in: fdm-core/src/cultivation.ts:101
Alpha
Adds a new cultivation to the catalogue.
Parameters
fdm
any
The FDM instance providing the connection to the database. The instance can be created with createFdmServer.
properties
The properties of the cultivation to add.
b_lu_catalogue
any
b_lu_croprotation
any
b_lu_harvestable
any
b_lu_hcat3
any
b_lu_hcat3_name
any
b_lu_hi
any
b_lu_n_harvestable
any
b_lu_n_residue
any
b_lu_name
any
b_lu_name_en
any
b_lu_source
any
b_lu_yield
any
b_n_fixation
any
Returns
Promise
<void
>
A Promise that resolves when the cultivation is added.
Throws
If the insertion fails.