func (q contentUnitI18nQuery) One() (*ContentUnitI18n, error) {
	o := &ContentUnitI18n{}
	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 content_unit_i18n")
	}
	return o, nil
}
One returns a single contentUnitI18n 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 ContentUnitI18n struct {
	ContentUnitID    int64       `boil:"content_unit_id" json:"content_unit_id" toml:"content_unit_id" yaml:"content_unit_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 *contentUnitI18nR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L contentUnitI18nL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}
var ContentUnitI18nColumns = struct {
	ContentUnitID    string
	Language         string
	OriginalLanguage string
	Name             string
	Description      string
	UserID           string
	CreatedAt        string
}{
	ContentUnitID:    "content_unit_id",
	Language:         "language",
	OriginalLanguage: "original_language",
	Name:             "name",
	Description:      "description",
	UserID:           "user_id",
	CreatedAt:        "created_at",
}
type contentUnitI18nR struct {
	ContentUnit *ContentUnit
	User        *User
}
type contentUnitI18nL struct{}
var (
	contentUnitI18nColumns               = []string{"content_unit_id", "language", "original_language", "name", "description", "user_id", "created_at"}
	contentUnitI18nColumnsWithoutDefault = []string{"content_unit_id", "language", "original_language", "name", "description", "user_id"}
	contentUnitI18nColumnsWithDefault    = []string{"created_at"}
	contentUnitI18nPrimaryKeyColumns     = []string{"content_unit_id", "language"}
)
type (
	ContentUnitI18nSlice []*ContentUnitI18n
	contentUnitI18nQuery struct {
		*queries.Query
	}
)
var (
	contentUnitI18nType                 = reflect.TypeOf(&ContentUnitI18n{})
	contentUnitI18nMapping              = queries.MakeStructMapping(contentUnitI18nType)
	contentUnitI18nPrimaryKeyMapping, _ = queries.BindMapping(contentUnitI18nType, contentUnitI18nMapping, contentUnitI18nPrimaryKeyColumns)
	contentUnitI18nInsertCacheMut       sync.RWMutex
	contentUnitI18nInsertCache          = make(map[string]insertCache)
	contentUnitI18nUpdateCacheMut       sync.RWMutex
	contentUnitI18nUpdateCache          = make(map[string]updateCache)
	contentUnitI18nUpsertCacheMut       sync.RWMutex
	contentUnitI18nUpsertCache          = make(map[string]insertCache)
)
var (
	_ = time.Second
	_ = bytes.MinRead
)
func (q contentUnitI18nQuery) OneP() *ContentUnitI18n {
	o, err := q.One()
	if err != nil {
		panic(boil.WrapErr(err))
	}
	return o
}