simonsobs / sisock

Sisock ('saɪsɒk): streaming of Simons Obs. data over websockets for quicklook
Other
2 stars 0 forks source link

Use SQL's `AUTO_INCREMENT` on `id` colume in feeds table #23

Closed BrianJKoopman closed 5 years ago

BrianJKoopman commented 5 years ago

As was brought up in https://github.com/simonsobs/sisock/pull/22#pullrequestreview-199674433, we should use SQL's ability to AUTO_INCREMENT a primary key when assigning the id numbers in the feeds table. cursor.lastrowid can then be used for the feed_id in our code.