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

Class Note

pydbml/_classes/note.py:6–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5
6class Note(SQLObject, DBMLObject):
7 dont_compare_fields = ('parent',)
8
9 def __init__(self, text: Any) -> None:
10 self.text: str
11 self.text = str(text) if text is not None else ''
12 self.parent: Any = None
13
14 def __str__(self):
15 '''Note text'''
16 return self.text
17
18 def __bool__(self):
19 return bool(self.text)
20
21 def __repr__(self):
22 '''Note('Note text')'''
23 return f'Note({repr(self.text)})'

Callers 15

test_onelineMethod · 0.90
test_multilineMethod · 0.90
complex_columnFunction · 0.90
string_columnFunction · 0.90
boolean_columnFunction · 0.90
note1Function · 0.90
multiline_noteFunction · 0.90
create_databaseMethod · 0.90
test_note_and_commentMethod · 0.90
test_noteMethod · 0.90

Calls

no outgoing calls

Tested by 15

test_onelineMethod · 0.72
test_multilineMethod · 0.72
complex_columnFunction · 0.72
string_columnFunction · 0.72
boolean_columnFunction · 0.72
note1Function · 0.72
multiline_noteFunction · 0.72
create_databaseMethod · 0.72
test_note_and_commentMethod · 0.72
test_noteMethod · 0.72