mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-12-24 12:14:40 +08:00
doc: documentation updates
This commit is contained in:
@@ -80,6 +80,7 @@ func (cw *CronWorkflow) GetParametersFromWorkflowSpecJson() ([]byte, error) {
|
||||
return parametersJson, nil
|
||||
}
|
||||
|
||||
// AddToManifestSpec updates the CronWorkflow's manifest by setting the input manifest under the specified key
|
||||
func (cw *CronWorkflow) AddToManifestSpec(key, manifest string) error {
|
||||
currentManifestMapping, err := mapping.NewFromYamlString(cw.Manifest)
|
||||
if err != nil {
|
||||
|
||||
@@ -5,10 +5,12 @@ import (
|
||||
"github.com/jmoiron/sqlx"
|
||||
)
|
||||
|
||||
// DB represents a database connection. It wraps a sqlx.DB to provide convenience methods.
|
||||
type DB struct {
|
||||
sqlx.DB
|
||||
}
|
||||
|
||||
// NewDB creates a new DB using an existing sqlx.DB connection.
|
||||
func NewDB(db *sqlx.DB) *DB {
|
||||
return &DB{
|
||||
*db,
|
||||
|
||||
Reference in New Issue
Block a user