Skip to content

Commit

Permalink
Add GraphQL utilities to Fusion; add utility functions to FusionSQLRe…
Browse files Browse the repository at this point in the history
…sult
  • Loading branch information
kesmit13 committed Oct 31, 2023
1 parent 1a9e1cc commit 9c7247d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion singlestoredb/fusion/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import operator
import re
import sys
from typing import Any
from typing import Iterable
from typing import List
Expand Down Expand Up @@ -49,7 +50,13 @@ def gen() -> Iterable[Any]:
return gen()


class FieldIndexDict(dict[str, int]):
if sys.version_info < (3, 9):
StrDict = dict
else:
StrDict = dict[str, int]


class FieldIndexDict(StrDict):
"""Case-insensitive dictionary for column name lookups."""

def __getitem__(self, key: str) -> int:
Expand Down

0 comments on commit 9c7247d

Please sign in to comment.