cagey.queries.insert_mass_spectrum#
- cagey.queries.insert_mass_spectrum(connection, reaction_key, peaks, *, commit=True)[source]#
Insert a mass spectrum into the database.
- Parameters:
connection (Connection) – A SQLite connection.
reaction_key (ReactionKey) – The reaction key.
peaks (Sequence[MassSpectrumPeak]) – The mass spectrum peaks.
commit (bool) – Whether to commit the transaction.
- Return type:
None