We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71f9b25 commit 197ea5bCopy full SHA for 197ea5b
1 file changed
swift/codegen/lib/dbscheme.py
@@ -16,16 +16,19 @@ class DbColumn:
16
binding: bool = False
17
first: bool = False
18
19
+ @property
20
def name(self):
21
if self.schema_name in dbscheme_keywords:
22
return self.schema_name + "_"
23
return self.schema_name
24
25
26
def lhstype(self):
27
if self.type[0] == "@":
28
return "unique int" if self.binding else "int"
29
return self.type
30
31
32
def rhstype(self):
33
if self.type[0] == "@" and self.binding:
34
0 commit comments