This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import annotations | |
import datetime as dt | |
import json | |
import httpx # pip install httpx | |
class RESTAPIV1(httpx.Client): | |
"""It's just an HTTP client.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE OR REPLACE FUNCTION ts_query_tag_comment_json(query STRING) | |
returns variant not null | |
language python | |
runtime_version = '3.8' | |
handler = 'extract_query_tag_as_json' | |
AS | |
$$ | |
from __future__ import annotations | |
import re |