diff options
Diffstat (limited to 'test.py')
-rw-r--r-- | test.py | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -17,11 +17,18 @@ session = Session() t1_sensor = model.Sensor("foosensor", "blatest") session.add(t1_sensor) -for i in xrange(10000): - session.add( model.Value(t1_sensor, 0.5) ) +for i in xrange(10): + m = model.ValueInt(t1_sensor, 1) + session.add( m ) -session.commit() + m = model.ValueFloat(t1_sensor, 1.2) + session.add( m ) + + m = model.ValueString(t1_sensor, "foobar") + session.add( m ) + +session.commit() session.close() |