Documentation
¶
Index ¶
- func NConvertPgInt8(value pgtype.Int8) *int64
- func NConvertPgTimestamp(value pgtype.Timestamp) *time.Time
- func NConvertUUID(value pgtype.UUID) *uuid.UUID
- func NewPgxConn(ctx context.Context, config Config) (*pgxpool.Pool, error)
- type Config
- type Connect
- type DBTX
- type DbTracer
- type File
- type NullVpBackendFilesTypeEnum
- type NullVpBackendUsersStatusEnum
- type Queries
- type Repository
- type SqlcCreateFilesItemParams
- type User
- type VpBackendFilesTypeEnum
- type VpBackendUsersStatusEnum
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NConvertPgInt8 ¶
Types ¶
type Connect ¶
type Connect interface { Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error) Query(context.Context, string, ...interface{}) (pgx.Rows, error) QueryRow(context.Context, string, ...interface{}) pgx.Row CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource) (int64, error) Begin(ctx context.Context) (pgx.Tx, error) }
type NullVpBackendFilesTypeEnum ¶
type NullVpBackendFilesTypeEnum struct { VpBackendFilesTypeEnum VpBackendFilesTypeEnum Valid bool // Valid is true if VpBackendFilesTypeEnum is not NULL }
func (*NullVpBackendFilesTypeEnum) Scan ¶
func (ns *NullVpBackendFilesTypeEnum) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullVpBackendUsersStatusEnum ¶
type NullVpBackendUsersStatusEnum struct { VpBackendUsersStatusEnum VpBackendUsersStatusEnum Valid bool // Valid is true if VpBackendUsersStatusEnum is not NULL }
func (*NullVpBackendUsersStatusEnum) Scan ¶
func (ns *NullVpBackendUsersStatusEnum) Scan(value interface{}) error
Scan implements the Scanner interface.
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) SqlcCreateFilesItem ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepo ¶
func NewRepo(conn Connect) *Repository
type VpBackendFilesTypeEnum ¶
type VpBackendFilesTypeEnum string
const ( VpBackendFilesTypeEnumDoc VpBackendFilesTypeEnum = "doc" VpBackendFilesTypeEnumDocx VpBackendFilesTypeEnum = "docx" VpBackendFilesTypeEnumPdf VpBackendFilesTypeEnum = "pdf" VpBackendFilesTypeEnumPng VpBackendFilesTypeEnum = "png" VpBackendFilesTypeEnumJpg VpBackendFilesTypeEnum = "jpg" VpBackendFilesTypeEnumJpeg VpBackendFilesTypeEnum = "jpeg" )
func (*VpBackendFilesTypeEnum) Scan ¶
func (e *VpBackendFilesTypeEnum) Scan(src interface{}) error
type VpBackendUsersStatusEnum ¶
type VpBackendUsersStatusEnum string
const ( VpBackendUsersStatusEnumActive VpBackendUsersStatusEnum = "active" VpBackendUsersStatusEnumDisabled VpBackendUsersStatusEnum = "disabled" )
func (*VpBackendUsersStatusEnum) Scan ¶
func (e *VpBackendUsersStatusEnum) Scan(src interface{}) error
Click to show internal directories.
Click to hide internal directories.