types

package
v0.0.0-...-7fcfa66 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromAccessTokenScope

func FromAccessTokenScope(scope commonv1.AccessToken_Scope) db.AccessTokenScope

func FromAccessTokenScopes

func FromAccessTokenScopes(scopes []commonv1.AccessToken_Scope) []db.AccessTokenScope

func FromProtoTestMatrix

func FromProtoTestMatrix(m *commonv1.Test_Matrix) db.TestMatrix

func FromProtoTestRunConfig

func FromProtoTestRunConfig(rc *commonv1.Test_RunConfig) db.TestRunConfig

func FromProtoTimestampAsNullTime

func FromProtoTimestampAsNullTime(ts *timestamppb.Timestamp) sql.NullTime

func FromRunResult

func FromRunResult(result commonv1.Run_Result) db.RunResult

func FromRunResults

func FromRunResults(results []commonv1.Run_Result) []string

FromRunResults converts pb run results to db run results. XXX There is currently a bug preventing enmu arrays from being usable. Using []string until this is resolved. https://github.com/kyleconroy/sqlc/issues/1256

func ToAccessTokenScope

func ToAccessTokenScope(scope string) commonv1.AccessToken_Scope

ToAccessTokenScope converts db access token scope to the pb type. XXX There is currently a bug preventing enmu arrays from being usable. Using []string until this is resolved. https://github.com/kyleconroy/sqlc/issues/1256

func ToAccessTokenScopes

func ToAccessTokenScopes(scopes []string) []commonv1.AccessToken_Scope

ToAccessTokenScopes converts db access token scopes to the pb type. XXX There is currently a bug preventing enmu arrays from being usable. Using []string until this is resolved. https://github.com/kyleconroy/sqlc/issues/1256

func ToProtoResultData

func ToProtoResultData(data pgtype.JSONB) map[string]string

func ToProtoRun

func ToProtoRun(r *db.Run) (*commonv1.Run, error)

func ToProtoRunner

func ToProtoRunner(r *db.Runner) (*commonv1.Runner, error)

func ToProtoTest

func ToProtoTest(t *db.Test) (*commonv1.Test, error)

func ToProtoTestMatrix

func ToProtoTestMatrix(m db.TestMatrix) *commonv1.Test_Matrix

func ToProtoTestRunConfig

func ToProtoTestRunConfig(rc db.TestRunConfig) *commonv1.Test_RunConfig

func ToProtoTimestamp

func ToProtoTimestamp(ts interface{}) *timestamppb.Timestamp

func ToRunLogs

func ToRunLogs(logs []db.RunLog) []*commonv1.Run_Log

func ToRunResult

func ToRunResult(result db.RunResult) commonv1.Run_Result

func ToUUIDString

func ToUUIDString(uuid pgtype.UUID) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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