MCPcopy Create free account
hub / github.com/Vanderhoof/PyDBML / Expression

Class Expression

pydbml/_classes/expression.py:4–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2
3
4class Expression(SQLObject, DBMLObject):
5 def __init__(self, text: str):
6 self.text = text
7
8 def __str__(self) -> str:
9 '''
10 >>> print(Expression('sum(amount)'))
11 sum(amount)
12 '''
13
14 return self.text
15
16 def __repr__(self) -> str:
17 '''
18 >>> Expression('sum(amount)')
19 Expression('sum(amount)')
20 '''
21
22 return f'Expression({repr(self.text)})'

Callers 6

test_index_definitionMethod · 0.90
expression1Function · 0.90
create_databaseMethod · 0.90
test_expressionMethod · 0.90
test_multipleMethod · 0.90
buildMethod · 0.90

Calls

no outgoing calls

Tested by 5

test_index_definitionMethod · 0.72
expression1Function · 0.72
create_databaseMethod · 0.72
test_expressionMethod · 0.72
test_multipleMethod · 0.72