Documentation ¶
Index ¶
- func FromAccessTokenScope(scope commonv1.AccessToken_Scope) db.AccessTokenScope
- func FromAccessTokenScopes(scopes []commonv1.AccessToken_Scope) []db.AccessTokenScope
- func FromProtoTestMatrix(m *commonv1.Test_Matrix) db.TestMatrix
- func FromProtoTestRunConfig(rc *commonv1.Test_RunConfig) db.TestRunConfig
- func FromProtoTimestampAsNullTime(ts *timestamppb.Timestamp) sql.NullTime
- func FromRunResult(result commonv1.Run_Result) db.RunResult
- func FromRunResults(results []commonv1.Run_Result) []string
- func ToAccessTokenScope(scope string) commonv1.AccessToken_Scope
- func ToAccessTokenScopes(scopes []string) []commonv1.AccessToken_Scope
- func ToProtoResultData(data pgtype.JSONB) map[string]string
- func ToProtoRun(r *db.Run) (*commonv1.Run, error)
- func ToProtoRunner(r *db.Runner) (*commonv1.Runner, error)
- func ToProtoTest(t *db.Test) (*commonv1.Test, error)
- func ToProtoTestMatrix(m db.TestMatrix) *commonv1.Test_Matrix
- func ToProtoTestRunConfig(rc db.TestRunConfig) *commonv1.Test_RunConfig
- func ToProtoTimestamp(ts interface{}) *timestamppb.Timestamp
- func ToRunLogs(logs []db.RunLog) []*commonv1.Run_Log
- func ToRunResult(result db.RunResult) commonv1.Run_Result
- func ToUUIDString(uuid pgtype.UUID) string
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 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 ToRunResult ¶
func ToRunResult(result db.RunResult) commonv1.Run_Result
func ToUUIDString ¶
Types ¶
This section is empty.