Skip to content

Commit

Permalink
add a sample for putting row with TIMESTAMP value and Null
Browse files Browse the repository at this point in the history
  • Loading branch information
knonomura committed Mar 24, 2022
1 parent 32fb4ab commit 2a21ef2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sample/sample2.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
griddb.ContainerType.TIME_SERIES, True)
ts = gridstore.put_container(conInfo)

#Put row to timeseries with TIMESTAMP value and None. None means NULL value
ts.put(['2020-10-01T15:00:00.000Z', True, None])

#Put row to timeseries with current timestamp
now = datetime.datetime.utcnow()
ts.put([now, False, 100])
Expand Down

0 comments on commit 2a21ef2

Please sign in to comment.