class track(UserType):
title = Text() artist = Text() album = Text() uri = Text() length = Integer() played = Integer() start_time = DateTime()
class Sessions(Model): username = Text(primary_key=True) sessions = DateTime(primary_key=True) tracks = List(UserDefinedType(track))
Sessions.create(hh='abc', sessions=datetime.datetime.now(), tracks=[track(title="Example",artist='hello', album='sdfads',length=123,start_time=datetime.datetime.now())])
cassandra.protocol.SyntaxException: <ErrorMessage code=2000 [Syntax error in CQL query] message="line 1:219 mismatched input ':' expecting ')' (...23.279881, 'title': Example, 'uri'[:] None...)">
To unsubscribe from this group and stop receiving emails from it, send an email to python-driver-u...@lists.datastax.com.
'INSERT INTO trackplay.sessions ("username", "sessions", "tracks") VALUES (\'testuser\', 1436369702735, [{\'album\': test album, \'artist\': None, \'start_time\': 2360-02-29 14:45:12, \'title\': Example, \'uri\': www.hello.com, \'sec\': 123, \'sa\': 123}])'
'INSERT INTO trackplay.sessions ("username", "sessions", "tracks") VALUES (testuser, 1436357303671, [{album: \'test album\', artist: null, start_time: \'2015-07-08 12:08:23.671151\', title: \'Example\', uri: \'www.hello.com\', sec: 123, sa: 123}])'