mysql

package
v0.0.0-...-de94dfd Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mysql contains generated code for schema 'a_bit_of_everything'.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func A0In0Out

func A0In0Out(ctx context.Context, db DB) error

A0In0Out calls the stored procedure 'a_bit_of_everything.a_0_in_0_out()' on db.

func A0In1Out

func A0In1Out(ctx context.Context, db DB) (int, error)

A0In1Out calls the stored procedure 'a_bit_of_everything.a_0_in_1_out() int' on db.

func A1In0Out

func A1In0Out(ctx context.Context, db DB, aParam int) error

A1In0Out calls the stored procedure 'a_bit_of_everything.a_1_in_0_out(int)' on db.

func A1In1Out

func A1In1Out(ctx context.Context, db DB, aParam int) (int, error)

A1In1Out calls the stored procedure 'a_bit_of_everything.a_1_in_1_out(int) int' on db.

func A2In2Out

func A2In2Out(ctx context.Context, db DB, paramOne, paramTwo int) (int, int, error)

A2In2Out calls the stored procedure 'a_bit_of_everything.a_2_in_2_out(int, int) (int, int)' on db.

func AFunc0In

func AFunc0In(ctx context.Context, db DB) (int, error)

AFunc0In calls the stored function 'a_bit_of_everything.a_func_0_in() int' on db.

func AFunc1In

func AFunc1In(ctx context.Context, db DB, aParam int) (int, error)

AFunc1In calls the stored function 'a_bit_of_everything.a_func_1_in(int) int' on db.

func AFunc2In

func AFunc2In(ctx context.Context, db DB, paramOne, paramTwo int) (int, error)

AFunc2In calls the stored function 'a_bit_of_everything.a_func_2_in(int, int) int' on db.

func Errorf

func Errorf(s string, v ...interface{})

Errorf logs an error message using the package error logger.

func Logf

func Logf(s string, v ...interface{})

Logf logs a message using the package 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

func SetLogger

func SetLogger(logger interface{})

SetLogger sets the package logger. Valid logger types:

io.Writer
func(string, ...interface{}) (int, error) // fmt.Printf
func(string, ...interface{}) // log.Printf

Types

type ABitOfEverything

type ABitOfEverything struct {
	ABigint                  int64             `json:"a_bigint"`                    // a_bigint
	ABigintNullable          sql.NullInt64     `json:"a_bigint_nullable"`           // a_bigint_nullable
	ABinary                  []byte            `json:"a_binary"`                    // a_binary
	ABinaryNullable          []byte            `json:"a_binary_nullable"`           // a_binary_nullable
	ABit                     bool              `json:"a_bit"`                       // a_bit
	ABitNullable             sql.NullBool      `json:"a_bit_nullable"`              // a_bit_nullable
	ABlob                    []byte            `json:"a_blob"`                      // a_blob
	ABlobNullable            []byte            `json:"a_blob_nullable"`             // a_blob_nullable
	ABool                    bool              `json:"a_bool"`                      // a_bool
	ABoolNullable            sql.NullBool      `json:"a_bool_nullable"`             // a_bool_nullable
	AChar                    string            `json:"a_char"`                      // a_char
	ACharNullable            sql.NullString    `json:"a_char_nullable"`             // a_char_nullable
	ADate                    time.Time         `json:"a_date"`                      // a_date
	ADateNullable            sql.NullTime      `json:"a_date_nullable"`             // a_date_nullable
	ADatetime                time.Time         `json:"a_datetime"`                  // a_datetime
	ADatetimeNullable        sql.NullTime      `json:"a_datetime_nullable"`         // a_datetime_nullable
	ADec                     float64           `json:"a_dec"`                       // a_dec
	ADecNullable             sql.NullFloat64   `json:"a_dec_nullable"`              // a_dec_nullable
	AFixed                   float64           `json:"a_fixed"`                     // a_fixed
	AFixedNullable           sql.NullFloat64   `json:"a_fixed_nullable"`            // a_fixed_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
	AEnum                    AEnum             `json:"a_enum"`                      // a_enum
	AEnumNullable            NullAEnumNullable `json:"a_enum_nullable"`             // a_enum_nullable
	AFloat                   float32           `json:"a_float"`                     // a_float
	AFloatNullable           sql.NullFloat64   `json:"a_float_nullable"`            // a_float_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
	AJSON                    string            `json:"a_json"`                      // a_json
	AJSONNullable            sql.NullString    `json:"a_json_nullable"`             // a_json_nullable
	ALongblob                []byte            `json:"a_longblob"`                  // a_longblob
	ALongblobNullable        []byte            `json:"a_longblob_nullable"`         // a_longblob_nullable
	ALongtext                string            `json:"a_longtext"`                  // a_longtext
	ALongtextNullable        sql.NullString    `json:"a_longtext_nullable"`         // a_longtext_nullable
	AMediumblob              []byte            `json:"a_mediumblob"`                // a_mediumblob
	AMediumblobNullable      []byte            `json:"a_mediumblob_nullable"`       // a_mediumblob_nullable
	AMediumint               int               `json:"a_mediumint"`                 // a_mediumint
	AMediumintNullable       sql.NullInt64     `json:"a_mediumint_nullable"`        // a_mediumint_nullable
	AMediumtext              string            `json:"a_mediumtext"`                // a_mediumtext
	AMediumtextNullable      sql.NullString    `json:"a_mediumtext_nullable"`       // a_mediumtext_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
	ASet                     []byte            `json:"a_set"`                       // a_set
	ASetNullable             []byte            `json:"a_set_nullable"`              // a_set_nullable
	ASmallint                int16             `json:"a_smallint"`                  // a_smallint
	ASmallintNullable        sql.NullInt64     `json:"a_smallint_nullable"`         // a_smallint_nullable
	AText                    string            `json:"a_text"`                      // a_text
	ATextNullable            sql.NullString    `json:"a_text_nullable"`             // a_text_nullable
	ATime                    string            `json:"a_time"`                      // a_time
	ATimeNullable            sql.NullString    `json:"a_time_nullable"`             // a_time_nullable
	ATimestamp               time.Time         `json:"a_timestamp"`                 // a_timestamp
	ATimestampNullable       time.Time         `json:"a_timestamp_nullable"`        // a_timestamp_nullable
	ATinyblob                []byte            `json:"a_tinyblob"`                  // a_tinyblob
	ATinyblobNullable        []byte            `json:"a_tinyblob_nullable"`         // a_tinyblob_nullable
	ATinyint                 int8              `json:"a_tinyint"`                   // a_tinyint
	ATinyintNullable         sql.NullInt64     `json:"a_tinyint_nullable"`          // a_tinyint_nullable
	ATinytext                string            `json:"a_tinytext"`                  // a_tinytext
	ATinytextNullable        sql.NullString    `json:"a_tinytext_nullable"`         // a_tinytext_nullable
	AVarbinary               []byte            `json:"a_varbinary"`                 // a_varbinary
	AVarbinaryNullable       []byte            `json:"a_varbinary_nullable"`        // a_varbinary_nullable
	AVarchar                 string            `json:"a_varchar"`                   // a_varchar
	AVarcharNullable         sql.NullString    `json:"a_varchar_nullable"`          // a_varchar_nullable
	AYear                    int16             `json:"a_year"`                      // a_year
	AYearNullable            sql.NullInt64     `json:"a_year_nullable"`             // a_year_nullable
}

ABitOfEverything represents a row from 'a_bit_of_everything.a_bit_of_everything'.

type AEnum

type AEnum uint16

AEnum is the 'a_enum' enum type from schema 'a_bit_of_everything'.

const (
	// AEnumOne is the 'ONE' a_enum.
	AEnumOne AEnum = 1
	// AEnumTwo is the 'TWO' a_enum.
	AEnumTwo AEnum = 2
)

AEnum values.

func (AEnum) MarshalText

func (ae AEnum) MarshalText() ([]byte, error)

MarshalText marshals AEnum into text.

func (*AEnum) Scan

func (ae *AEnum) Scan(v interface{}) error

Scan satisfies the sql.Scanner interface.

func (AEnum) String

func (ae AEnum) String() string

String satisfies the fmt.Stringer interface.

func (*AEnum) UnmarshalText

func (ae *AEnum) UnmarshalText(buf []byte) error

UnmarshalText unmarshals AEnum from text.

func (AEnum) Value

func (ae AEnum) Value() (driver.Value, error)

Value satisfies the driver.Valuer interface.

type AEnumNullable

type AEnumNullable uint16

AEnumNullable is the 'a_enum_nullable' enum type from schema 'a_bit_of_everything'.

const (
	// AEnumNullableOne is the 'ONE' a_enum_nullable.
	AEnumNullableOne AEnumNullable = 1
	// AEnumNullableTwo is the 'TWO' a_enum_nullable.
	AEnumNullableTwo AEnumNullable = 2
)

AEnumNullable values.

func (AEnumNullable) MarshalText

func (aen AEnumNullable) MarshalText() ([]byte, error)

MarshalText marshals AEnumNullable into text.

func (*AEnumNullable) Scan

func (aen *AEnumNullable) Scan(v interface{}) error

Scan satisfies the sql.Scanner interface.

func (AEnumNullable) String

func (aen AEnumNullable) String() string

String satisfies the fmt.Stringer interface.

func (*AEnumNullable) UnmarshalText

func (aen *AEnumNullable) UnmarshalText(buf []byte) error

UnmarshalText unmarshals AEnumNullable from text.

func (AEnumNullable) Value

func (aen AEnumNullable) Value() (driver.Value, error)

Value satisfies the driver.Valuer interface.

type AForeignKey

type AForeignKey struct {
	AKey sql.NullInt64 `json:"a_key"` // a_key
}

AForeignKey represents a row from 'a_bit_of_everything.a_foreign_key'.

func AForeignKeyByAKey

func AForeignKeyByAKey(ctx context.Context, db DB, aKey sql.NullInt64) ([]*AForeignKey, error)

AForeignKeyByAKey retrieves a row from 'a_bit_of_everything.a_foreign_key' as a AForeignKey.

Generated from index 'a_key'.

func (*AForeignKey) APrimary

func (afk *AForeignKey) APrimary(ctx context.Context, db DB) (*APrimary, error)

APrimary returns the APrimary associated with the AForeignKey's (AKey).

Generated from foreign key 'a_foreign_key_ibfk_1'.

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 'a_bit_of_everything.a_foreign_key_composite'.

func AForeignKeyCompositeByAKey1AKey2

func AForeignKeyCompositeByAKey1AKey2(ctx context.Context, db DB, aKey1, aKey2 sql.NullInt64) ([]*AForeignKeyComposite, error)

AForeignKeyCompositeByAKey1AKey2 retrieves a row from 'a_bit_of_everything.a_foreign_key_composite' as a AForeignKeyComposite.

Generated from index 'a_key1'.

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_ibfk_1'.

type AIndex

type AIndex struct {
	AKey sql.NullInt64 `json:"a_key"` // a_key
}

AIndex represents a row from 'a_bit_of_everything.a_index'.

func AIndexByAKey

func AIndexByAKey(ctx context.Context, db DB, aKey sql.NullInt64) ([]*AIndex, error)

AIndexByAKey retrieves a row from 'a_bit_of_everything.a_index' as a AIndex.

Generated from index 'a_index_idx'.

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 'a_bit_of_everything.a_index_composite'.

func AIndexCompositeByAKey1AKey2

func AIndexCompositeByAKey1AKey2(ctx context.Context, db DB, aKey1, aKey2 sql.NullInt64) ([]*AIndexComposite, error)

AIndexCompositeByAKey1AKey2 retrieves a row from 'a_bit_of_everything.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 'a_bit_of_everything.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 'a_bit_of_everything.a_primary'.

func APrimaryByAKey

func APrimaryByAKey(ctx context.Context, db DB, aKey int) (*APrimary, error)

APrimaryByAKey retrieves a row from 'a_bit_of_everything.a_primary' as a APrimary.

Generated from index 'a_primary_a_key_pkey'.

func (*APrimary) Delete

func (ap *APrimary) Delete(ctx context.Context, db DB) error

Delete deletes the APrimary from the database.

func (*APrimary) Deleted

func (ap *APrimary) Deleted() bool

Deleted returns true when the APrimary has been marked for deletion from the database.

func (*APrimary) Exists

func (ap *APrimary) Exists() bool

Exists returns true when the APrimary exists in the database.

func (*APrimary) Insert

func (ap *APrimary) Insert(ctx context.Context, db DB) error

Insert inserts the APrimary to 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 'a_bit_of_everything.a_primary_composite'.

func APrimaryCompositeByAKey1AKey2

func APrimaryCompositeByAKey1AKey2(ctx context.Context, db DB, aKey1, aKey2 int) (*APrimaryComposite, error)

APrimaryCompositeByAKey1AKey2 retrieves a row from 'a_bit_of_everything.a_primary_composite' as a APrimaryComposite.

Generated from index 'a_primary_composite_a_key1_a_key2_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.

func (*APrimaryComposite) Insert

func (apc *APrimaryComposite) Insert(ctx context.Context, db DB) error

Insert inserts the APrimaryComposite to 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 'a_bit_of_everything.a_primary_multi'.

func APrimaryMultiByAKey

func APrimaryMultiByAKey(ctx context.Context, db DB, aKey int) (*APrimaryMulti, error)

APrimaryMultiByAKey retrieves a row from 'a_bit_of_everything.a_primary_multi' as a APrimaryMulti.

Generated from index 'a_primary_multi_a_key_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.

func (*APrimaryMulti) Update

func (apm *APrimaryMulti) Update(ctx context.Context, db DB) error

Update updates a APrimaryMulti in the database.

func (*APrimaryMulti) Upsert

func (apm *APrimaryMulti) Upsert(ctx context.Context, db DB) error

Upsert performs an upsert for APrimaryMulti.

type ASequence

type ASequence struct {
	ASeq int `json:"a_seq"` // a_seq
	// contains filtered or unexported fields
}

ASequence represents a row from 'a_bit_of_everything.a_sequence'.

func ASequenceByASeq

func ASequenceByASeq(ctx context.Context, db DB, aSeq int) (*ASequence, error)

ASequenceByASeq retrieves a row from 'a_bit_of_everything.a_sequence' as a ASequence.

Generated from index 'a_sequence_a_seq_pkey'.

func (*ASequence) Delete

func (as *ASequence) Delete(ctx context.Context, db DB) error

Delete deletes the ASequence from the database.

func (*ASequence) Deleted

func (as *ASequence) Deleted() bool

Deleted returns true when the ASequence has been marked for deletion from the database.

func (*ASequence) Exists

func (as *ASequence) Exists() bool

Exists returns true when the ASequence exists in the database.

func (*ASequence) Insert

func (as *ASequence) Insert(ctx context.Context, db DB) error

Insert inserts the ASequence to 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 'a_bit_of_everything.a_sequence_multi'.

func ASequenceMultiByASeq

func ASequenceMultiByASeq(ctx context.Context, db DB, aSeq int) (*ASequenceMulti, error)

ASequenceMultiByASeq retrieves a row from 'a_bit_of_everything.a_sequence_multi' as a ASequenceMulti.

Generated from index 'a_sequence_multi_a_seq_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.

func (*ASequenceMulti) Update

func (asm *ASequenceMulti) Update(ctx context.Context, db DB) error

Update updates a ASequenceMulti in the database.

func (*ASequenceMulti) Upsert

func (asm *ASequenceMulti) Upsert(ctx context.Context, db DB) error

Upsert performs an upsert for ASequenceMulti.

type AUniqueIndex

type AUniqueIndex struct {
	AKey sql.NullInt64 `json:"a_key"` // a_key
}

AUniqueIndex represents a row from 'a_bit_of_everything.a_unique_index'.

func AUniqueIndexByAKey

func AUniqueIndexByAKey(ctx context.Context, db DB, aKey sql.NullInt64) (*AUniqueIndex, error)

AUniqueIndexByAKey retrieves a row from 'a_bit_of_everything.a_unique_index' as a AUniqueIndex.

Generated from index 'a_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 'a_bit_of_everything.a_unique_index_composite'.

func AUniqueIndexCompositeByAKey1AKey2

func AUniqueIndexCompositeByAKey1AKey2(ctx context.Context, db DB, aKey1, aKey2 sql.NullInt64) (*AUniqueIndexComposite, error)

AUniqueIndexCompositeByAKey1AKey2 retrieves a row from 'a_bit_of_everything.a_unique_index_composite' as a AUniqueIndexComposite.

Generated from index 'a_key1'.

type AViewOfEverything

type AViewOfEverything struct {
	ABigint                  int64             `json:"a_bigint"`                    // a_bigint
	ABigintNullable          sql.NullInt64     `json:"a_bigint_nullable"`           // a_bigint_nullable
	ABinary                  []byte            `json:"a_binary"`                    // a_binary
	ABinaryNullable          []byte            `json:"a_binary_nullable"`           // a_binary_nullable
	ABit                     bool              `json:"a_bit"`                       // a_bit
	ABitNullable             sql.NullBool      `json:"a_bit_nullable"`              // a_bit_nullable
	ABlob                    []byte            `json:"a_blob"`                      // a_blob
	ABlobNullable            []byte            `json:"a_blob_nullable"`             // a_blob_nullable
	ABool                    bool              `json:"a_bool"`                      // a_bool
	ABoolNullable            sql.NullBool      `json:"a_bool_nullable"`             // a_bool_nullable
	AChar                    string            `json:"a_char"`                      // a_char
	ACharNullable            sql.NullString    `json:"a_char_nullable"`             // a_char_nullable
	ADate                    time.Time         `json:"a_date"`                      // a_date
	ADateNullable            sql.NullTime      `json:"a_date_nullable"`             // a_date_nullable
	ADatetime                time.Time         `json:"a_datetime"`                  // a_datetime
	ADatetimeNullable        sql.NullTime      `json:"a_datetime_nullable"`         // a_datetime_nullable
	ADec                     float64           `json:"a_dec"`                       // a_dec
	ADecNullable             sql.NullFloat64   `json:"a_dec_nullable"`              // a_dec_nullable
	AFixed                   float64           `json:"a_fixed"`                     // a_fixed
	AFixedNullable           sql.NullFloat64   `json:"a_fixed_nullable"`            // a_fixed_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
	AEnum                    AEnum             `json:"a_enum"`                      // a_enum
	AEnumNullable            NullAEnumNullable `json:"a_enum_nullable"`             // a_enum_nullable
	AFloat                   float32           `json:"a_float"`                     // a_float
	AFloatNullable           sql.NullFloat64   `json:"a_float_nullable"`            // a_float_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
	AJSON                    string            `json:"a_json"`                      // a_json
	AJSONNullable            sql.NullString    `json:"a_json_nullable"`             // a_json_nullable
	ALongblob                []byte            `json:"a_longblob"`                  // a_longblob
	ALongblobNullable        []byte            `json:"a_longblob_nullable"`         // a_longblob_nullable
	ALongtext                string            `json:"a_longtext"`                  // a_longtext
	ALongtextNullable        sql.NullString    `json:"a_longtext_nullable"`         // a_longtext_nullable
	AMediumblob              []byte            `json:"a_mediumblob"`                // a_mediumblob
	AMediumblobNullable      []byte            `json:"a_mediumblob_nullable"`       // a_mediumblob_nullable
	AMediumint               int               `json:"a_mediumint"`                 // a_mediumint
	AMediumintNullable       sql.NullInt64     `json:"a_mediumint_nullable"`        // a_mediumint_nullable
	AMediumtext              string            `json:"a_mediumtext"`                // a_mediumtext
	AMediumtextNullable      sql.NullString    `json:"a_mediumtext_nullable"`       // a_mediumtext_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
	ASet                     []byte            `json:"a_set"`                       // a_set
	ASetNullable             []byte            `json:"a_set_nullable"`              // a_set_nullable
	ASmallint                int16             `json:"a_smallint"`                  // a_smallint
	ASmallintNullable        sql.NullInt64     `json:"a_smallint_nullable"`         // a_smallint_nullable
	AText                    string            `json:"a_text"`                      // a_text
	ATextNullable            sql.NullString    `json:"a_text_nullable"`             // a_text_nullable
	ATime                    string            `json:"a_time"`                      // a_time
	ATimeNullable            sql.NullString    `json:"a_time_nullable"`             // a_time_nullable
	ATimestamp               time.Time         `json:"a_timestamp"`                 // a_timestamp
	ATimestampNullable       time.Time         `json:"a_timestamp_nullable"`        // a_timestamp_nullable
	ATinyblob                []byte            `json:"a_tinyblob"`                  // a_tinyblob
	ATinyblobNullable        []byte            `json:"a_tinyblob_nullable"`         // a_tinyblob_nullable
	ATinyint                 int8              `json:"a_tinyint"`                   // a_tinyint
	ATinyintNullable         sql.NullInt64     `json:"a_tinyint_nullable"`          // a_tinyint_nullable
	ATinytext                string            `json:"a_tinytext"`                  // a_tinytext
	ATinytextNullable        sql.NullString    `json:"a_tinytext_nullable"`         // a_tinytext_nullable
	AVarbinary               []byte            `json:"a_varbinary"`                 // a_varbinary
	AVarbinaryNullable       []byte            `json:"a_varbinary_nullable"`        // a_varbinary_nullable
	AVarchar                 string            `json:"a_varchar"`                   // a_varchar
	AVarcharNullable         sql.NullString    `json:"a_varchar_nullable"`          // a_varchar_nullable
	AYear                    int16             `json:"a_year"`                      // a_year
	AYearNullable            sql.NullInt64     `json:"a_year_nullable"`             // a_year_nullable
}

AViewOfEverything represents a row from 'a_bit_of_everything.a_view_of_everything'.

type AViewOfEverythingSome

type AViewOfEverythingSome struct {
	ABool bool   `json:"a_bool"` // a_bool
	AText string `json:"a_text"` // a_text
}

AViewOfEverythingSome represents a row from 'a_bit_of_everything.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 'a_bit_of_everything'.

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 ErrInvalidAEnumNullable

type ErrInvalidAEnumNullable string

ErrInvalidAEnumNullable is the invalid AEnumNullable error.

func (ErrInvalidAEnumNullable) Error

func (err ErrInvalidAEnumNullable) 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.

func (Error) Error

func (err Error) Error() string

Error satisfies the error interface.

type NullAEnum

type NullAEnum struct {
	AEnum AEnum
	// Valid is true if AEnum is not null.
	Valid bool
}

NullAEnum represents a null 'a_enum' enum for schema 'a_bit_of_everything'.

func (*NullAEnum) Scan

func (nae *NullAEnum) Scan(v interface{}) error

Scan satisfies the sql.Scanner interface.

func (NullAEnum) Value

func (nae NullAEnum) Value() (driver.Value, error)

Value satisfies the driver.Valuer interface.

type NullAEnumNullable

type NullAEnumNullable struct {
	AEnumNullable AEnumNullable
	// Valid is true if AEnumNullable is not null.
	Valid bool
}

NullAEnumNullable represents a null 'a_enum_nullable' enum for schema 'a_bit_of_everything'.

func (*NullAEnumNullable) Scan

func (naen *NullAEnumNullable) Scan(v interface{}) error

Scan satisfies the sql.Scanner interface.

func (NullAEnumNullable) Value

func (naen NullAEnumNullable) Value() (driver.Value, error)

Value satisfies the driver.Valuer interface.

Jump to

Keyboard shortcuts

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