database_to_object_model_service

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CamelCaseString

func CamelCaseString(
	s string) string

func FormatColumnName

func FormatColumnName(
	settings *configurations2.Settings,
	column,
	table string) (
	string,
	error)

FormatColumnName checks for invalid characters and transforms a column name according to the provided settings.

func OrchestrateDatabaseToGoInterOp

func OrchestrateDatabaseToGoInterOp(
	databaseName string,
	outputFilePath string)

func Orchestrate_Cli

func Orchestrate_Cli(databaseToGoSettings *configurations2.DatabaseToGoSettings)

main function to run the transformations

func ReplaceSpace

func ReplaceSpace(
	r rune) rune

ReplaceSpace swaps any Unicode space characters for underscores to create valid Go identifiers

func RunDatabaseToGoServices

func RunDatabaseToGoServices(
	settings *configurations2.Settings,
	sourceDatabase contract.IDatabases,
	out writer.Writer) (
	err error)

RunDatabaseToGoServices runs the transformations by creating the concrete Database by the provided settings

func RunTableToGoServices

func RunTableToGoServices(
	settings *configurations2.Settings,
	sourceDatabase contract.IDatabases,
	out writer.Writer,
	sourceDatabaseTables []*object_model2.Table) error

func ToInitialisms

func ToInitialisms(
	s string) string

func ValidVariableName

func ValidVariableName(
	s string) bool

ValidVariableName checks for the existence of any characters outside of Unicode letters, numbers and underscore.

Types

This section is empty.

Directories

Path Synopsis
output

Jump to

Keyboard shortcuts

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