From dcffe30f3277b54e695ef9c8f17b01f12dffd859 Mon Sep 17 00:00:00 2001 From: Jeffrey Aven Date: Tue, 17 Oct 2023 12:29:59 +1100 Subject: [PATCH] docstring updates --- pystackql/stackql.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pystackql/stackql.py b/pystackql/stackql.py index 79e04e8..4083dcb 100644 --- a/pystackql/stackql.py +++ b/pystackql/stackql.py @@ -426,9 +426,11 @@ def execute(self, query): Example: >>> from pystackql import StackQL >>> stackql = StackQL() - >>> stackql_query = \"\"\"SELECT SPLIT_PART(machineType, '/', -1) as machine_type, status, COUNT(*) as num_instances + >>> stackql_query = \"\"\"SELECT SPLIT_PART(machineType, '/', -1) as machine_type, + ... status, COUNT(*) as num_instances ... FROM google.compute.instances - ... WHERE project = 'stackql-demo' AND zone = 'australia-southeast1-a' + ... WHERE project = 'stackql-demo' + ... AND zone = 'australia-southeast1-a' ... GROUP BY machine_type, status ... HAVING COUNT(*) > 2\"\"\" >>> result = stackql.execute(stackql_query)