Documentation
¶
Index ¶
- func CountElementsInXML(w *sync.WaitGroup, c chan int, tableName string, countedElement string, ...)
- func DropAndCreateTable(schema string, tableName string, db *sqlx.DB) (bool, error)
- func ExportBulk(schema func(tableName string) string, xmlObject interface{}, w *sync.WaitGroup, ...)
- func PrintRowsAffected(elementName string, currentRow int) string
- func SearchFile(filePartName string, dir string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountElementsInXML ¶
func CountElementsInXML(w *sync.WaitGroup, c chan int, tableName string, countedElement string, logger *log.Logger)
CountElementsInXML возвращает количество узлов в XML-файле
func DropAndCreateTable ¶
DropAndCreateTable удаляет таблицу, если она уже существует и создает заново
func ExportBulk ¶
func ExportBulk(schema func(tableName string) string, xmlObject interface{}, w *sync.WaitGroup, c chan string, db *sqlx.DB, format *string, logger *log.Logger)
ExportBulk экспортирует данные из xml-файла в таблицу указанную в описании xml-структуры
func PrintRowsAffected ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.