MCPcopy Create free account
hub / github.com/MariaDB/server / IsFileType

Function IsFileType

storage/connect/mycat.cc:188–216  ·  view source on GitHub ↗

/ Return true for table types based on file. */ /

Source from the content-addressed store, hash-verified

186/* Return true for table types based on file. */
187/***********************************************************************/
188bool IsFileType(TABTYPE type)
189 {
190 bool isfile;
191
192 switch (type) {
193 case TAB_DOS:
194 case TAB_FIX:
195 case TAB_BIN:
196 case TAB_CSV:
197 case TAB_FMT:
198 case TAB_DBF:
199 case TAB_XML:
200 case TAB_INI:
201 case TAB_VEC:
202 case TAB_JSON:
203#if defined(BSON_SUPPORT)
204 case TAB_BSON:
205#endif // BSON_SUPPORT
206 case TAB_REST:
207 // case TAB_ZIP:
208 isfile= true;
209 break;
210 default:
211 isfile= false;
212 break;
213 } // endswitch type
214
215 return isfile;
216 } // end of IsFileType
217
218/***********************************************************************/
219/* Return true for table types returning exact row count. */

Callers 8

table_flagsMethod · 0.85
checkMethod · 0.85
createMethod · 0.85
multi_range_read_infoMethod · 0.85
GetStringCatInfoMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected