_覓 | 覦覈襦 | 豕蠏手 | 殊螳 | 譯殊碁 |
FrontPage › PythonCassandra一危郁語り鍵
|
|
from pycassa import * pool = ConnectionPool('MyKeyspace', ['192.168.136.3:9160']) col_fam = ColumnFamily(pool, 'User') col_fam.get('nosql') col_fam.get('sql') d = dict(col_fam.get_range()) d['nosql'] d['nosql']['email'] ろ
>>> from pycassa import * >>> pool = ConnectionPool('MyKeyspace', ['192.168.136.3:9160']) >>> col_fam = ColumnFamily(pool, 'User') >>> col_fam.get('nosql') OrderedDict([(u'email', u'cassandra@gmail.com'), (u'fname', u'Cassandra')]) >>> col_fam.get('sql') OrderedDict([(u'email', u'oracle@gmail.com'), (u'fname', u'oracle')]) >>> d = dict(col_fam.get_range()) >>> d['nosql'] OrderedDict([(u'email', u'cassandra@gmail.com'), (u'fname', u'Cassandra')]) >>> d['nosql']['email'] u'cassandra@gmail.com' >>>
鏤
|
企 殊 り 螳螻 れ 蠏瑚 蠍 り れ螻 蟆企. (ろ朱語) |