Skip to content

MSQL queries #36

Description

@mshofmann

So far I've tried two different approaches but neither are yielding the results I need.

Approach 1:
This approach gives me the schema, with metadata about the column I queried and a total row count, but no actual rows of data.

from membersuite_api_client.client import ConciergeClient 

client = ConciergeClient(access_key='xxxx', secret_key='xxxx', association_id='xxxx') 
client.request_session() 
query = 'select Owner.Owner.BAPNumber__c from SpeciesDetail__c' 
client.runSQL(query=query) 

Approach 2:
This approach just yields an empty list.

from membersuite_api_client.utils import submit_msql_query 
from membersuite_api_client.utils import get_new_client 
import os 

os.environ['MS_ACCESS_KEY'] = 'xxxx' 
os.environ['MS_SECRET_KEY'] = 'xxxx' 
os.environ['MS_ASSOCIATION_ID'] = 'xxxx' 

client2 = get_new_client() 
client2.request_session() 

submit_msql_query(query=query, client=client2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions