Documentation
¶
Overview ¶
Package postgres contains generated code for schema 'public'.
Index ¶
- func A0In0Out(ctx context.Context, db DB) error
- func A0In1Out(ctx context.Context, db DB) (int, error)
- func A1In0Out(ctx context.Context, db DB, aParam int) error
- func A1In1Out(ctx context.Context, db DB, aParam int) (int, error)
- func A2In2Out(ctx context.Context, db DB, paramOne, paramTwo int) (int, int, error)
- func AFunc0In(ctx context.Context, db DB) (int, error)
- func AFunc1In(ctx context.Context, db DB, aParam int) (int, error)
- func AFunc2In(ctx context.Context, db DB, paramOne, paramTwo int) (int, error)
- func AOverloadedByParamOne(ctx context.Context, db DB, paramOne int) error
- func AOverloadedByParamOneAndParamTwo(ctx context.Context, db DB, paramOne, paramTwo int) error
- func Errorf(s string, v ...interface{})
- func Logf(s string, v ...interface{})
- func SetErrorLogger(logger interface{})
- func SetLogger(logger interface{})
- type ABitOfEverything
- type AEnum
- type AForeignKey
- type AForeignKeyComposite
- type AIndex
- type AIndexComposite
- type AManualTable
- type APrimary
- type APrimaryComposite
- type APrimaryMulti
- func (apm *APrimaryMulti) Delete(ctx context.Context, db DB) error
- func (apm *APrimaryMulti) Deleted() bool
- func (apm *APrimaryMulti) Exists() bool
- func (apm *APrimaryMulti) Insert(ctx context.Context, db DB) error
- func (apm *APrimaryMulti) Save(ctx context.Context, db DB) error
- func (apm *APrimaryMulti) Update(ctx context.Context, db DB) error
- func (apm *APrimaryMulti) Upsert(ctx context.Context, db DB) error
- type ASequence
- type ASequenceMulti
- func (asm *ASequenceMulti) Delete(ctx context.Context, db DB) error
- func (asm *ASequenceMulti) Deleted() bool
- func (asm *ASequenceMulti) Exists() bool
- func (asm *ASequenceMulti) Insert(ctx context.Context, db DB) error
- func (asm *ASequenceMulti) Save(ctx context.Context, db DB) error
- func (asm *ASequenceMulti) Update(ctx context.Context, db DB) error
- func (asm *ASequenceMulti) Upsert(ctx context.Context, db DB) error
- type AUniqueIndex
- type AUniqueIndexComposite
- type AViewOfEverything
- type AViewOfEverythingSome
- type DB
- type ErrInsertFailed
- type ErrInvalidAEnum
- type ErrUpdateFailed
- type ErrUpsertFailed
- type Error
- type NullAEnum
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func A2In2Out ¶
A2In2Out calls the stored function 'public.a_2_in_2_out(integer, integer) (integer, integer)' on db.
func AFunc2In ¶
AFunc2In calls the stored function 'public.a_func_2_in(integer, integer) integer' on db.
func AOverloadedByParamOne ¶
AOverloadedByParamOne calls the stored procedure 'public.a_overloaded(integer)' on db.
func AOverloadedByParamOneAndParamTwo ¶
AOverloadedByParamOneAndParamTwo calls the stored procedure 'public.a_overloaded(integer, integer)' on db.
func Errorf ¶
func Errorf(s string, v ...interface{})
Errorf logs an error message using the package error logger.
func SetErrorLogger ¶
func SetErrorLogger(logger interface{})
SetErrorLogger sets the package error logger. Valid logger types:
io.Writer
func(string, ...interface{}) (int, error) // fmt.Printf
func(string, ...interface{}) // log.Printf
Types ¶
type ABitOfEverything ¶
type ABitOfEverything struct {
AEnum AEnum `json:"a_enum"` // a_enum
AEnumNullable NullAEnum `json:"a_enum_nullable"` // a_enum_nullable
ABigint int64 `json:"a_bigint"` // a_bigint
ABigintNullable sql.NullInt64 `json:"a_bigint_nullable"` // a_bigint_nullable
ABigserial int64 `json:"a_bigserial"` // a_bigserial
ABigserialNullable int64 `json:"a_bigserial_nullable"` // a_bigserial_nullable
ABit uint8 `json:"a_bit"` // a_bit
ABitNullable *uint8 `json:"a_bit_nullable"` // a_bit_nullable
ABitVarying []byte `json:"a_bit_varying"` // a_bit_varying
ABitVaryingNullable []byte `json:"a_bit_varying_nullable"` // a_bit_varying_nullable
ABool bool `json:"a_bool"` // a_bool
ABoolNullable sql.NullBool `json:"a_bool_nullable"` // a_bool_nullable
ABoolean bool `json:"a_boolean"` // a_boolean
ABooleanNullable sql.NullBool `json:"a_boolean_nullable"` // a_boolean_nullable
ABpchar string `json:"a_bpchar"` // a_bpchar
ABpcharNullable sql.NullString `json:"a_bpchar_nullable"` // a_bpchar_nullable
ABytea []byte `json:"a_bytea"` // a_bytea
AByteaNullable []byte `json:"a_bytea_nullable"` // a_bytea_nullable
AChar string `json:"a_char"` // a_char
ACharNullable sql.NullString `json:"a_char_nullable"` // a_char_nullable
ACharacter string `json:"a_character"` // a_character
ACharacterNullable sql.NullString `json:"a_character_nullable"` // a_character_nullable
ACharacterVarying string `json:"a_character_varying"` // a_character_varying
ACharacterVaryingNullable sql.NullString `json:"a_character_varying_nullable"` // a_character_varying_nullable
ADate time.Time `json:"a_date"` // a_date
ADateNullable sql.NullTime `json:"a_date_nullable"` // a_date_nullable
ADecimal float64 `json:"a_decimal"` // a_decimal
ADecimalNullable sql.NullFloat64 `json:"a_decimal_nullable"` // a_decimal_nullable
ADoublePrecision float64 `json:"a_double_precision"` // a_double_precision
ADoublePrecisionNullable sql.NullFloat64 `json:"a_double_precision_nullable"` // a_double_precision_nullable
AInet string `json:"a_inet"` // a_inet
AInetNullable sql.NullString `json:"a_inet_nullable"` // a_inet_nullable
AInt int `json:"a_int"` // a_int
AIntNullable sql.NullInt64 `json:"a_int_nullable"` // a_int_nullable
AInteger int `json:"a_integer"` // a_integer
AIntegerNullable sql.NullInt64 `json:"a_integer_nullable"` // a_integer_nullable
AInterval []byte `json:"a_interval"` // a_interval
AIntervalNullable []byte `json:"a_interval_nullable"` // a_interval_nullable
AJSON []byte `json:"a_json"` // a_json
AJSONNullable []byte `json:"a_json_nullable"` // a_json_nullable
AJsonb []byte `json:"a_jsonb"` // a_jsonb
AJsonbNullable []byte `json:"a_jsonb_nullable"` // a_jsonb_nullable
AMoney string `json:"a_money"` // a_money
AMoneyNullable sql.NullString `json:"a_money_nullable"` // a_money_nullable
ANumeric float64 `json:"a_numeric"` // a_numeric
ANumericNullable sql.NullFloat64 `json:"a_numeric_nullable"` // a_numeric_nullable
AReal float32 `json:"a_real"` // a_real
ARealNullable sql.NullFloat64 `json:"a_real_nullable"` // a_real_nullable
ASerial int `json:"a_serial"` // a_serial
ASerialNullable int `json:"a_serial_nullable"` // a_serial_nullable
ASmallint int16 `json:"a_smallint"` // a_smallint
ASmallintNullable sql.NullInt64 `json:"a_smallint_nullable"` // a_smallint_nullable
ASmallserial int16 `json:"a_smallserial"` // a_smallserial
ASmallserialNullable int16 `json:"a_smallserial_nullable"` // a_smallserial_nullable
AText string `json:"a_text"` // a_text
ATextNullable sql.NullString `json:"a_text_nullable"` // a_text_nullable
ATime time.Time `json:"a_time"` // a_time
ATimeNullable sql.NullTime `json:"a_time_nullable"` // a_time_nullable
ATimestamp time.Time `json:"a_timestamp"` // a_timestamp
ATimestampNullable sql.NullTime `json:"a_timestamp_nullable"` // a_timestamp_nullable
ATimestamptz time.Time `json:"a_timestamptz"` // a_timestamptz
ATimestamptzNullable sql.NullTime `json:"a_timestamptz_nullable"` // a_timestamptz_nullable
ATimetz time.Time `json:"a_timetz"` // a_timetz
ATimetzNullable sql.NullTime `json:"a_timetz_nullable"` // a_timetz_nullable
AUUID uuid.UUID `json:"a_uuid"` // a_uuid
AUUIDNullable uuid.NullUUID `json:"a_uuid_nullable"` // a_uuid_nullable
AVarchar string `json:"a_varchar"` // a_varchar
AVarcharNullable sql.NullString `json:"a_varchar_nullable"` // a_varchar_nullable
AXML []byte `json:"a_xml"` // a_xml
AXMLNullable []byte `json:"a_xml_nullable"` // a_xml_nullable
}
ABitOfEverything represents a row from 'public.a_bit_of_everything'.
type AEnum ¶
type AEnum uint16
AEnum is the 'a_enum' enum type from schema 'public'.
const ( // AEnumOne is the 'ONE' a_enum. AEnumOne AEnum = 1 // AEnumTwo is the 'TWO' a_enum. AEnumTwo AEnum = 2 )
AEnum values.
func (AEnum) MarshalText ¶
MarshalText marshals AEnum into text.
func (*AEnum) UnmarshalText ¶
UnmarshalText unmarshals AEnum from text.
type AForeignKey ¶
AForeignKey represents a row from 'public.a_foreign_key'.
type AForeignKeyComposite ¶
type AForeignKeyComposite struct {
AKey1 sql.NullInt64 `json:"a_key1"` // a_key1
AKey2 sql.NullInt64 `json:"a_key2"` // a_key2
}
AForeignKeyComposite represents a row from 'public.a_foreign_key_composite'.
func (*AForeignKeyComposite) APrimaryComposite ¶
func (afkc *AForeignKeyComposite) APrimaryComposite(ctx context.Context, db DB) (*APrimaryComposite, error)
APrimaryComposite returns the APrimaryComposite associated with the AForeignKeyComposite's (AKey1, AKey2).
Generated from foreign key 'a_foreign_key_composite_a_key1_a_key2_fkey'.
type AIndexComposite ¶
type AIndexComposite struct {
AKey1 sql.NullInt64 `json:"a_key1"` // a_key1
AKey2 sql.NullInt64 `json:"a_key2"` // a_key2
}
AIndexComposite represents a row from 'public.a_index_composite'.
func AIndexCompositeByAKey1AKey2 ¶
func AIndexCompositeByAKey1AKey2(ctx context.Context, db DB, aKey1, aKey2 sql.NullInt64) ([]*AIndexComposite, error)
AIndexCompositeByAKey1AKey2 retrieves a row from 'public.a_index_composite' as a AIndexComposite.
Generated from index 'a_index_composite_idx'.
type AManualTable ¶
type AManualTable struct {
AText sql.NullString `json:"a_text"` // a_text
}
AManualTable represents a row from 'public.a_manual_table'.
type APrimary ¶
type APrimary struct {
AKey int `json:"a_key"` // a_key
// contains filtered or unexported fields
}
APrimary represents a row from 'public.a_primary'.
func APrimaryByAKey ¶
APrimaryByAKey retrieves a row from 'public.a_primary' as a APrimary.
Generated from index 'a_primary_pkey'.
func (*APrimary) Deleted ¶
Deleted returns true when the APrimary has been marked for deletion from the database.
type APrimaryComposite ¶
type APrimaryComposite struct {
AKey1 int `json:"a_key1"` // a_key1
AKey2 int `json:"a_key2"` // a_key2
// contains filtered or unexported fields
}
APrimaryComposite represents a row from 'public.a_primary_composite'.
func APrimaryCompositeByAKey1AKey2 ¶
func APrimaryCompositeByAKey1AKey2(ctx context.Context, db DB, aKey1, aKey2 int) (*APrimaryComposite, error)
APrimaryCompositeByAKey1AKey2 retrieves a row from 'public.a_primary_composite' as a APrimaryComposite.
Generated from index 'a_primary_composite_pkey'.
func (*APrimaryComposite) Delete ¶
func (apc *APrimaryComposite) Delete(ctx context.Context, db DB) error
Delete deletes the APrimaryComposite from the database.
func (*APrimaryComposite) Deleted ¶
func (apc *APrimaryComposite) Deleted() bool
Deleted returns true when the APrimaryComposite has been marked for deletion from the database.
func (*APrimaryComposite) Exists ¶
func (apc *APrimaryComposite) Exists() bool
Exists returns true when the APrimaryComposite exists in the database.
type APrimaryMulti ¶
type APrimaryMulti struct {
AKey int `json:"a_key"` // a_key
AText sql.NullString `json:"a_text"` // a_text
// contains filtered or unexported fields
}
APrimaryMulti represents a row from 'public.a_primary_multi'.
func APrimaryMultiByAKey ¶
APrimaryMultiByAKey retrieves a row from 'public.a_primary_multi' as a APrimaryMulti.
Generated from index 'a_primary_multi_pkey'.
func (*APrimaryMulti) Delete ¶
func (apm *APrimaryMulti) Delete(ctx context.Context, db DB) error
Delete deletes the APrimaryMulti from the database.
func (*APrimaryMulti) Deleted ¶
func (apm *APrimaryMulti) Deleted() bool
Deleted returns true when the APrimaryMulti has been marked for deletion from the database.
func (*APrimaryMulti) Exists ¶
func (apm *APrimaryMulti) Exists() bool
Exists returns true when the APrimaryMulti exists in the database.
func (*APrimaryMulti) Insert ¶
func (apm *APrimaryMulti) Insert(ctx context.Context, db DB) error
Insert inserts the APrimaryMulti to the database.
func (*APrimaryMulti) Save ¶
func (apm *APrimaryMulti) Save(ctx context.Context, db DB) error
Save saves the APrimaryMulti to the database.
type ASequence ¶
type ASequence struct {
ASeq int `json:"a_seq"` // a_seq
// contains filtered or unexported fields
}
ASequence represents a row from 'public.a_sequence'.
func ASequenceByASeq ¶
ASequenceByASeq retrieves a row from 'public.a_sequence' as a ASequence.
Generated from index 'a_sequence_pkey'.
func (*ASequence) Deleted ¶
Deleted returns true when the ASequence has been marked for deletion from the database.
type ASequenceMulti ¶
type ASequenceMulti struct {
ASeq int `json:"a_seq"` // a_seq
AText sql.NullString `json:"a_text"` // a_text
// contains filtered or unexported fields
}
ASequenceMulti represents a row from 'public.a_sequence_multi'.
func ASequenceMultiByASeq ¶
ASequenceMultiByASeq retrieves a row from 'public.a_sequence_multi' as a ASequenceMulti.
Generated from index 'a_sequence_multi_pkey'.
func (*ASequenceMulti) Delete ¶
func (asm *ASequenceMulti) Delete(ctx context.Context, db DB) error
Delete deletes the ASequenceMulti from the database.
func (*ASequenceMulti) Deleted ¶
func (asm *ASequenceMulti) Deleted() bool
Deleted returns true when the ASequenceMulti has been marked for deletion from the database.
func (*ASequenceMulti) Exists ¶
func (asm *ASequenceMulti) Exists() bool
Exists returns true when the ASequenceMulti exists in the database.
func (*ASequenceMulti) Insert ¶
func (asm *ASequenceMulti) Insert(ctx context.Context, db DB) error
Insert inserts the ASequenceMulti to the database.
func (*ASequenceMulti) Save ¶
func (asm *ASequenceMulti) Save(ctx context.Context, db DB) error
Save saves the ASequenceMulti to the database.
type AUniqueIndex ¶
AUniqueIndex represents a row from 'public.a_unique_index'.
func AUniqueIndexByAKey ¶
AUniqueIndexByAKey retrieves a row from 'public.a_unique_index' as a AUniqueIndex.
Generated from index 'a_unique_index_a_key_key'.
type AUniqueIndexComposite ¶
type AUniqueIndexComposite struct {
AKey1 sql.NullInt64 `json:"a_key1"` // a_key1
AKey2 sql.NullInt64 `json:"a_key2"` // a_key2
}
AUniqueIndexComposite represents a row from 'public.a_unique_index_composite'.
func AUniqueIndexCompositeByAKey1AKey2 ¶
func AUniqueIndexCompositeByAKey1AKey2(ctx context.Context, db DB, aKey1, aKey2 sql.NullInt64) (*AUniqueIndexComposite, error)
AUniqueIndexCompositeByAKey1AKey2 retrieves a row from 'public.a_unique_index_composite' as a AUniqueIndexComposite.
Generated from index 'a_unique_index_composite_a_key1_a_key2_key'.
type AViewOfEverything ¶
type AViewOfEverything struct {
AEnum NullAEnum `json:"a_enum"` // a_enum
AEnumNullable NullAEnum `json:"a_enum_nullable"` // a_enum_nullable
ABigint sql.NullInt64 `json:"a_bigint"` // a_bigint
ABigintNullable sql.NullInt64 `json:"a_bigint_nullable"` // a_bigint_nullable
ABigserial sql.NullInt64 `json:"a_bigserial"` // a_bigserial
ABigserialNullable sql.NullInt64 `json:"a_bigserial_nullable"` // a_bigserial_nullable
ABit *uint8 `json:"a_bit"` // a_bit
ABitNullable *uint8 `json:"a_bit_nullable"` // a_bit_nullable
ABitVarying []byte `json:"a_bit_varying"` // a_bit_varying
ABitVaryingNullable []byte `json:"a_bit_varying_nullable"` // a_bit_varying_nullable
ABool sql.NullBool `json:"a_bool"` // a_bool
ABoolNullable sql.NullBool `json:"a_bool_nullable"` // a_bool_nullable
ABoolean sql.NullBool `json:"a_boolean"` // a_boolean
ABooleanNullable sql.NullBool `json:"a_boolean_nullable"` // a_boolean_nullable
ABpchar sql.NullString `json:"a_bpchar"` // a_bpchar
ABpcharNullable sql.NullString `json:"a_bpchar_nullable"` // a_bpchar_nullable
ABytea []byte `json:"a_bytea"` // a_bytea
AByteaNullable []byte `json:"a_bytea_nullable"` // a_bytea_nullable
AChar sql.NullString `json:"a_char"` // a_char
ACharNullable sql.NullString `json:"a_char_nullable"` // a_char_nullable
ACharacter sql.NullString `json:"a_character"` // a_character
ACharacterNullable sql.NullString `json:"a_character_nullable"` // a_character_nullable
ACharacterVarying sql.NullString `json:"a_character_varying"` // a_character_varying
ACharacterVaryingNullable sql.NullString `json:"a_character_varying_nullable"` // a_character_varying_nullable
ADate sql.NullTime `json:"a_date"` // a_date
ADateNullable sql.NullTime `json:"a_date_nullable"` // a_date_nullable
ADecimal sql.NullFloat64 `json:"a_decimal"` // a_decimal
ADecimalNullable sql.NullFloat64 `json:"a_decimal_nullable"` // a_decimal_nullable
ADoublePrecision sql.NullFloat64 `json:"a_double_precision"` // a_double_precision
ADoublePrecisionNullable sql.NullFloat64 `json:"a_double_precision_nullable"` // a_double_precision_nullable
AInet sql.NullString `json:"a_inet"` // a_inet
AInetNullable sql.NullString `json:"a_inet_nullable"` // a_inet_nullable
AInt sql.NullInt64 `json:"a_int"` // a_int
AIntNullable sql.NullInt64 `json:"a_int_nullable"` // a_int_nullable
AInteger sql.NullInt64 `json:"a_integer"` // a_integer
AIntegerNullable sql.NullInt64 `json:"a_integer_nullable"` // a_integer_nullable
AInterval []byte `json:"a_interval"` // a_interval
AIntervalNullable []byte `json:"a_interval_nullable"` // a_interval_nullable
AJSON []byte `json:"a_json"` // a_json
AJSONNullable []byte `json:"a_json_nullable"` // a_json_nullable
AJsonb []byte `json:"a_jsonb"` // a_jsonb
AJsonbNullable []byte `json:"a_jsonb_nullable"` // a_jsonb_nullable
AMoney sql.NullString `json:"a_money"` // a_money
AMoneyNullable sql.NullString `json:"a_money_nullable"` // a_money_nullable
ANumeric sql.NullFloat64 `json:"a_numeric"` // a_numeric
ANumericNullable sql.NullFloat64 `json:"a_numeric_nullable"` // a_numeric_nullable
AReal sql.NullFloat64 `json:"a_real"` // a_real
ARealNullable sql.NullFloat64 `json:"a_real_nullable"` // a_real_nullable
ASerial sql.NullInt64 `json:"a_serial"` // a_serial
ASerialNullable sql.NullInt64 `json:"a_serial_nullable"` // a_serial_nullable
ASmallint sql.NullInt64 `json:"a_smallint"` // a_smallint
ASmallintNullable sql.NullInt64 `json:"a_smallint_nullable"` // a_smallint_nullable
ASmallserial sql.NullInt64 `json:"a_smallserial"` // a_smallserial
ASmallserialNullable sql.NullInt64 `json:"a_smallserial_nullable"` // a_smallserial_nullable
AText sql.NullString `json:"a_text"` // a_text
ATextNullable sql.NullString `json:"a_text_nullable"` // a_text_nullable
ATime sql.NullTime `json:"a_time"` // a_time
ATimeNullable sql.NullTime `json:"a_time_nullable"` // a_time_nullable
ATimestamp sql.NullTime `json:"a_timestamp"` // a_timestamp
ATimestampNullable sql.NullTime `json:"a_timestamp_nullable"` // a_timestamp_nullable
ATimestamptz sql.NullTime `json:"a_timestamptz"` // a_timestamptz
ATimestamptzNullable sql.NullTime `json:"a_timestamptz_nullable"` // a_timestamptz_nullable
ATimetz sql.NullTime `json:"a_timetz"` // a_timetz
ATimetzNullable sql.NullTime `json:"a_timetz_nullable"` // a_timetz_nullable
AUUID uuid.NullUUID `json:"a_uuid"` // a_uuid
AUUIDNullable uuid.NullUUID `json:"a_uuid_nullable"` // a_uuid_nullable
AVarchar sql.NullString `json:"a_varchar"` // a_varchar
AVarcharNullable sql.NullString `json:"a_varchar_nullable"` // a_varchar_nullable
AXML []byte `json:"a_xml"` // a_xml
AXMLNullable []byte `json:"a_xml_nullable"` // a_xml_nullable
}
AViewOfEverything represents a row from 'public.a_view_of_everything'.
type AViewOfEverythingSome ¶
type AViewOfEverythingSome struct {
ABool sql.NullBool `json:"a_bool"` // a_bool
AText sql.NullString `json:"a_text"` // a_text
}
AViewOfEverythingSome represents a row from 'public.a_view_of_everything_some'.
type DB ¶
type DB interface {
ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
QueryRowContext(context.Context, string, ...interface{}) *sql.Row
}
DB is the common interface for database operations that can be used with types from schema 'public'.
This works with both database/sql.DB and database/sql.Tx.
type ErrInsertFailed ¶
type ErrInsertFailed struct {
Err error
}
ErrInsertFailed is the insert failed error.
func (*ErrInsertFailed) Error ¶
func (err *ErrInsertFailed) Error() string
Error satisfies the error interface.
func (*ErrInsertFailed) Unwrap ¶
func (err *ErrInsertFailed) Unwrap() error
Unwrap satisfies the unwrap interface.
type ErrInvalidAEnum ¶
type ErrInvalidAEnum string
ErrInvalidAEnum is the invalid AEnum error.
func (ErrInvalidAEnum) Error ¶
func (err ErrInvalidAEnum) Error() string
Error satisfies the error interface.
type ErrUpdateFailed ¶
type ErrUpdateFailed struct {
Err error
}
ErrUpdateFailed is the update failed error.
func (*ErrUpdateFailed) Error ¶
func (err *ErrUpdateFailed) Error() string
Error satisfies the error interface.
func (*ErrUpdateFailed) Unwrap ¶
func (err *ErrUpdateFailed) Unwrap() error
Unwrap satisfies the unwrap interface.
type ErrUpsertFailed ¶
type ErrUpsertFailed struct {
Err error
}
ErrUpsertFailed is the upsert failed error.
func (*ErrUpsertFailed) Error ¶
func (err *ErrUpsertFailed) Error() string
Error satisfies the error interface.
func (*ErrUpsertFailed) Unwrap ¶
func (err *ErrUpsertFailed) Unwrap() error
Unwrap satisfies the unwrap interface.
type Error ¶
type Error string
Error is an error.
const ( // ErrAlreadyExists is the already exists error. ErrAlreadyExists Error = "already exists" // ErrDoesNotExist is the does not exist error. ErrDoesNotExist Error = "does not exist" // ErrMarkedForDeletion is the marked for deletion error. ErrMarkedForDeletion Error = "marked for deletion" )
Error values.
Source Files
¶
- abitofeverything.xo.go
- aenum.xo.go
- aforeignkey.xo.go
- aforeignkeycomposite.xo.go
- aindex.xo.go
- aindexcomposite.xo.go
- amanualtable.xo.go
- aprimary.xo.go
- aprimarycomposite.xo.go
- aprimarymulti.xo.go
- asequence.xo.go
- asequencemulti.xo.go
- auniqueindex.xo.go
- auniqueindexcomposite.xo.go
- aviewofeverything.xo.go
- aviewofeverythingsome.xo.go
- db.xo.go
- sf_a0in1out.xo.go
- sf_a1in1out.xo.go
- sf_a2in2out.xo.go
- sf_afunc0in.xo.go
- sf_afunc1in.xo.go
- sf_afunc2in.xo.go
- sp_a0in0out.xo.go
- sp_a1in0out.xo.go
- sp_aoverloaded.xo.go