diff --git a/docs/index.md b/docs/index.md index 2c7f4ba..f4f8bf9 100644 --- a/docs/index.md +++ b/docs/index.md @@ -28,24 +28,25 @@ Quick Start >>> yql.diagnostics = True # To turn diagnostics on ``` -####Access to community tables +####Disable access to community tables ```python ->>> yql = myql.MYQL() >>> rep = yql.rawQuery('desc yahoo.finance.quotes ') >>> rep.json() -{u'error': {u'lang': u'en-US', u'description': u'No definition found for Table yahoo.finance.quotes'}} +{u'query': {u'count': 1, u'lang': u'en-US', u'results': {u'table': {u'src': u'http://www.datatables.org/yahoo/finance/yahoo.finance.quotes.xml', u'hash': u'061616a1c033ae89aaf2cbe83790b979', u'name': u'yahoo.finance.quotes', u'request': {u'select': {u'key': {u'required': u'true', u'type': u'xs:string', u'name': u'symbol'}}}, u'meta': {u'sampleQuery': u'\n\t\t\tselect * from yahoo.finance.quotes where symbol in ("YHOO","AAPL","GOOG","MSFT")\n\t\t'}, u'security': u'ANY'}}, u'created': u'2014-08-24T11:26:48Z'}} +>>> >>> yql.community= True # Setting up access to community +>>> yql = myql.MYQL() >>> rep = yql.rawQuery('desc yahoo.finance.quotes ') >>> rep.json() -{u'query': {u'count': 1, u'lang': u'en-US', u'results': {u'table': {u'src': u'http://www.datatables.org/yahoo/finance/yahoo.finance.quotes.xml', u'hash': u'061616a1c033ae89aaf2cbe83790b979', u'name': u'yahoo.finance.quotes', u'request': {u'select': {u'key': {u'required': u'true', u'type': u'xs:string', u'name': u'symbol'}}}, u'meta': {u'sampleQuery': u'\n\t\t\tselect * from yahoo.finance.quotes where symbol in ("YHOO","AAPL","GOOG","MSFT")\n\t\t'}, u'security': u'ANY'}}, u'created': u'2014-08-24T11:26:48Z'}} ->>> +{u'error': {u'lang': u'en-US', u'description': u'No definition found for Table yahoo.finance.quotes'}} + ``` or ```python >>> import myql ->>> yql = myql.MYQL(community=True) +>>> yql = myql.MYQL(community=False) >>> # do your magic ```