#NEWLINE# @ classmethod #NEWLINE# def from_declaration( cls , declaration , nullable , connection ) : #NEWLINE# #INDENT# if ( declaration == 'VARCHAR(MAX)' ) : #NEWLINE# #INDENT# return VarCharMax ( cls . collation ) #NEWLINE# #UNINDENT# m = re . match ( 'VARCHAR\\((\\d+)\\)' , declaration ) #NEWLINE# if m : #NEWLINE# #INDENT# return cls ( int ( m . group ( 1 ) ) , connection . collation )