func CreateClient(config utils.PostgresConnectionConfig) (result *Client) {
	result = new(Client)
	result.connection = pg.Connect(&pg.Options{
		User:     config.User,
		Addr:     config.ServerAddress,
		Password: config.Password,
		Database: config.DBName,
	})
	return result
}
/*
General Client API

CreateClient creates  an instance of Client with specified parameters
Doesn't check connection to DB server
package db
import (
	"fmt"
	"github.com/asp437/pg_elastic/utils"
	"github.com/go-pg/pg"
	"github.com/go-pg/pg/orm"
	"strings"
)
type Client struct {
	connection *pg.DB
}
type Query = orm.Query
type IndexRecord struct {
	Name    string
	Options string
}
type TypeRecord struct {
	Name      string
	IndexName string
	Options   string
}
type ElasticSearchDocument struct {
	ID       string
	Document interface{}
	Version  int
}