MCPcopy
hub / github.com/qax-os/excelize / getTables

Method getTables

table.go:206–217  ·  view source on GitHub ↗

getTables provides a function to get all tables in a workbook.

()

Source from the content-addressed store, hash-verified

204
205// getTables provides a function to get all tables in a workbook.
206func (f *File) getTables() (map[string][]Table, error) {
207 tables := map[string][]Table{}
208 for _, sheetName := range f.GetSheetList() {
209 tbls, err := f.GetTables(sheetName)
210 e := ErrSheetNotExist{sheetName}
211 if err != nil && err.Error() != newNotWorksheetError(sheetName).Error() && err.Error() != e.Error() {
212 return tables, err
213 }
214 tables[sheetName] = append(tables[sheetName], tbls...)
215 }
216 return tables, nil
217}
218
219// countTables provides a function to get table files count storage in the
220// folder xl/tables.

Callers 3

extractTableSlicerMethod · 0.95
DeleteTableMethod · 0.95

Calls 5

GetSheetListMethod · 0.95
GetTablesMethod · 0.95
ErrorMethod · 0.95
newNotWorksheetErrorFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected