Created
July 2, 2023 17:32
-
-
Save joaofig/9b2b59bf7372b096911927fcf4858251 to your computer and use it in GitHub Desktop.
Inserts the trajectory H3 token list
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def insert_h3(traj_id: int, | |
| h3_list: list[int]) -> None: | |
| db = TrajDb() | |
| sql = "insert into traj_h3 (traj_id, h3) values (?, ?)" | |
| params = [[traj_id, int(h)] for h in h3_list] | |
| db.execute_sql(sql, params, many=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment