_ | 覦覈襦 | 豕蠏手 | 殊螳 | 譯殊碁
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

碁伎 螳碁. 螳 覃 覈 蟆 覲. 譟磯 螳 蟯 襷り碓 伎 蟆語 . 蠏殊 る 襷 螻 朱 蠏碁 襷 覲牛蠍 企れ讌. 螳 れる 豎覯る. 螳 殊 訖襴襯 螳襾豪 企.