func (q personI18nQuery) One() (*PersonI18n, error) {
	o := &PersonI18n{}
	queries.SetLimit(q.Query, 1)
	err := q.Bind(o)
	if err != nil {
		if errors.Cause(err) == sql.ErrNoRows {
			return nil, sql.ErrNoRows
		}
		return nil, errors.Wrap(err, "mdbmodels: failed to execute a one query for person_i18n")
	}
	return o, nil
}
One returns a single personI18n record from the query.
package mdbmodels
import (
	"bytes"
	"database/sql"
	"fmt"
	"reflect"
	"strings"
	"sync"
	"time"
	"github.com/Bnei-Baruch/sqlboiler/boil"
	"github.com/Bnei-Baruch/sqlboiler/queries"
	"github.com/Bnei-Baruch/sqlboiler/queries/qm"
	"github.com/Bnei-Baruch/sqlboiler/strmangle"
	"github.com/pkg/errors"
	"gopkg.in/volatiletech/null.v6"
)
type PersonI18n struct {
	PersonID         int64       `boil:"person_id" json:"person_id" toml:"person_id" yaml:"person_id"`
	Language         string      `boil:"language" json:"language" toml:"language" yaml:"language"`
	OriginalLanguage null.String `boil:"original_language" json:"original_language,omitempty" toml:"original_language" yaml:"original_language,omitempty"`
	Name             null.String `boil:"name" json:"name,omitempty" toml:"name" yaml:"name,omitempty"`
	Description      null.String `boil:"description" json:"description,omitempty" toml:"description" yaml:"description,omitempty"`
	UserID           null.Int64  `boil:"user_id" json:"user_id,omitempty" toml:"user_id" yaml:"user_id,omitempty"`
	CreatedAt        time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	R *personI18nR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L personI18nL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}
var PersonI18nColumns = struct {
	PersonID         string
	Language         string
	OriginalLanguage string
	Name             string
	Description      string
	UserID           string
	CreatedAt        string
}{
	PersonID:         "person_id",
	Language:         "language",
	OriginalLanguage: "original_language",
	Name:             "name",
	Description:      "description",
	UserID:           "user_id",
	CreatedAt:        "created_at",
}
type personI18nR struct {
	Person *Person
	User   *User
}
type personI18nL struct{}
var (
	personI18nColumns               = []string{"person_id", "language", "original_language", "name", "description", "user_id", "created_at"}
	personI18nColumnsWithoutDefault = []string{"person_id", "language", "original_language", "name", "description", "user_id"}
	personI18nColumnsWithDefault    = []string{"created_at"}
	personI18nPrimaryKeyColumns     = []string{"person_id", "language"}
)
type (
	PersonI18nSlice []*PersonI18n
	personI18nQuery struct {
		*queries.Query
	}
)
var (
	personI18nType                 = reflect.TypeOf(&PersonI18n{})
	personI18nMapping              = queries.MakeStructMapping(personI18nType)
	personI18nPrimaryKeyMapping, _ = queries.BindMapping(personI18nType, personI18nMapping, personI18nPrimaryKeyColumns)
	personI18nInsertCacheMut       sync.RWMutex
	personI18nInsertCache          = make(map[string]insertCache)
	personI18nUpdateCacheMut       sync.RWMutex
	personI18nUpdateCache          = make(map[string]updateCache)
	personI18nUpsertCacheMut       sync.RWMutex
	personI18nUpsertCache          = make(map[string]insertCache)
)
var (
	_ = time.Second
	_ = bytes.MinRead
)
func (q personI18nQuery) OneP() *PersonI18n {
	o, err := q.One()
	if err != nil {
		panic(boil.WrapErr(err))
	}
	return o
}