File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ setInterval(() => {
212212 console . log ( data ) ;
213213 // }
214214 } ) ;
215- } , 5000 ) ;
215+ } , 2000 ) ;
216216}
217217if ( nowHost === 'www.baidu.com' ) {
218218setTimeout ( ( ) => {
Original file line number Diff line number Diff line change @@ -101,8 +101,8 @@ func (*${dbNameStr}Model) TableName() string {
101101
102102// 解析sql表明等基础信息
103103function sqlStrToGoTemplate ( str ) {
104- // CREATE TABLE `(.*)`\s\(([\d\D]*)\)\sENGINE=(. *)\sAUTO_INCREMENT=(\d+ )\s(\w+)\sCHARSET=(\w+)\s(COLLATE=\w+)*
105- const regex = / C R E A T E T A B L E ` ( .* ) ` \s \( ( [ \d \D ] * ) \) \s E N G I N E = ( . * ) \s ( A U T O _ I N C R E M E N T = ( .* ) \s ) * ( \w + ) \s C H A R S E T = ( \w + ) \s ( C O L L A T E = \w + ) * / gm;
104+ // CREATE TABLE `(.*)`\s\(\s((.*\s) *)\)\s(.*)COMMENT='(.*)'
105+ const regex = / C R E A T E T A B L E ` ( .* ) ` \s \( \s ( ( .* \s ) * ) \ )\s ( . * ) C O M M E N T = ' ( . * ) ' / gm;
106106 // `(.*)`\s(\w+[\((\d+)\)]*[\sunsigned\s]*)([NOT\s[NULL\s]*]*)(DEFAULT\s([\'](.*?)[\']|NULL)\s)*(AUTO_INCREMENT\s)*(COMMENT\s[\'](.*)[\'])*
107107 // const columnRegex = /`(.*)`\s(\w+[\((\d+)\)]*[\sunsigned\s]*)([NOT\s[NULL\s]*]*)(DEFAULT\s([\'](.*?)[\']|NULL)\s)*(AUTO_INCREMENT\s)*(COMMENT\s[\'](.*)[\'])*/gm;
108108 let m ;
You can’t perform that action at this time.
0 commit comments