ramp_database.tools.event
.add_keyword¶
-
ramp_database.tools.event.
add_keyword
(session, name, keyword_type, category=None, description=None, force=False)¶ Add a keyword to the database.
- Parameters
- session
sqlalchemy.orm.Session
The session to directly perform the operation on the database.
- namestr
The name of the keyword.
- keyword_type{‘data_domain’, ‘data_science_theme’}
The type of keyword.
- categoryNone or str, default is None
The category of the keyword.
- descriptionNone or str, default is None
The description of the keyword.
- forcebool, default is False
Whether or not to overwrite the keyword if it already exists.
- session