api_interpreter

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Copyright (c) 2023 the go-mongr8 Authors and Contributors [@see Authors file]

Licensed under the MIT License (https://opensource.org/licenses/MIT)

Copyright (c) 2023 the go-mongr8 Authors and Contributors [@see Authors file]

Licensed under the MIT License (https://opensource.org/licenses/MIT)

Copyright (c) 2023 the go-mongr8 Authors and Contributors [@see Authors file]

Licensed under the MIT License (https://opensource.org/licenses/MIT)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SubActionApi

type SubActionApi struct {
	Migration migrator.Migration
	// TODO: decide whether SubAction is always attached to SubActionApi (?), since not direct usage required
	SubAction si.SubAction
	Execute   func(ctx context.Context, db *mongo.Database) error
}

func GetSubActionApis

func GetSubActionApis(subActions []dt.Pair[migrator.Migration, si.SubAction], dbSchemas []collection.Collection) []SubActionApi

This returns the list of SubActionApi(s) `subActions` retrieved from migration files `dbSchemas` is current schema from database formatted in Collection manner

func SubActionApiConvertField

func SubActionApiConvertField(subAction dt.Pair[migrator.Migration, si.SubAction]) SubActionApi

func SubActionApiCreateCollection

func SubActionApiCreateCollection(subAction dt.Pair[migrator.Migration, si.SubAction]) SubActionApi

func SubActionApiCreateField

func SubActionApiCreateField(subAction dt.Pair[migrator.Migration, si.SubAction]) SubActionApi

func SubActionApiCreateIndex

func SubActionApiCreateIndex(subAction dt.Pair[migrator.Migration, si.SubAction]) SubActionApi

func SubActionApiDropCollection

func SubActionApiDropCollection(subAction dt.Pair[migrator.Migration, si.SubAction]) SubActionApi

func SubActionApiDropField

func SubActionApiDropField(subAction dt.Pair[migrator.Migration, si.SubAction]) SubActionApi

func SubActionApiDropIndex

func SubActionApiDropIndex(subAction dt.Pair[migrator.Migration, si.SubAction]) SubActionApi

Jump to

Keyboard shortcuts

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