_ | 覦覈襦 | 豕蠏手 | 殊螳 | 譯殊碁
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'
>>>
蠍 蠍郁鍵..
企: : るジ讓曙 襦螻豺 企Ν 譯殊語. 襦螻豺
EditText : Print : Mobile : FindPage : DeletePage : LikePages : Powered by MoniWiki : Last modified 2018-04-13 23:12:52

一企 蠏殊 狩 覓伎企. (S. 貊碁Μ讌)