helpers

package
v0.0.0-...-b02e064 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2016 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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

func DropAndCreateTable(schema string, tableName string, db *sqlx.DB) (bool, error)

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

func PrintRowsAffected(elementName string, currentRow int) string

func SearchFile

func SearchFile(filePartName string, dir string) (string, error)

SearchFile ищет в заданной директории файл, по части его имени и возвращает полное название файла

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL