cmd

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package cmd ...

Copyright © 2021 Joe Glista <josephsglista@gmail.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Package cmd ...

Copyright © 2021 Joe Glista <josephsglista@gmail.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Package cmd ... Copyright © 2021 Joe Glista <josephsglista@gmail.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type Attribute

type Attribute struct {
	Name string
	Type string
}

type Columns

type Columns struct {
	TableCatalog           string  `db:"TABLE_CATALOG"`
	TableSchema            string  `db:"TABLE_SCHEMA"`
	TableName              string  `db:"TABLE_NAME"`
	ColumnName             string  `db:"COLUMN_NAME"`
	OrdinalPosition        int     `db:"ORDINAL_POSITION"`
	ColumnDefault          *string `db:"COLUMN_DEFAULT"`
	IsNullable             string  `db:"IS_NULLABLE"`
	DataType               string  `db:"DATA_TYPE"`
	CharacterMaximumLength *int    `db:"CHARACTER_MAXIMUM_LENGTH"`
	CharacterOctetLength   *int    `db:"CHARACTER_OCTET_LENGTH"`
	NumericPrecision       *int    `db:"NUMERIC_PRECISION"`
	NumericPrecisionRadix  *int    `db:"NUMERIC_PRECISION_RADIX"`
	NumericScale           *int    `db:"NUMERIC_SCALE"`
	DateTimePrecision      *int    `db:"DATETIME_PRECISION"`
	CharacterSetCatalog    *string `db:"CHARACTER_SET_CATALOG"`
	CharacterSetSchema     *string `db:"CHARACTER_SET_SCHEMA"`
	CharacterSetName       *string `db:"CHARACTER_SET_NAME"`
	CollationCatalog       *string `db:"COLLATION_CATALOG"`
	CollationSchema        *string `db:"COLLATION_SCHEMA"`
	CollationName          *string `db:"COLLATION_NAME"`
	DomainCatalog          *string `db:"DOMAIN_CATALOG"`
	DomainSchema           *string `db:"DOMAIN_SCHEMA"`
	DomainName             *string `db:"DOMAIN_NAME"`
}

type DatabaseExistsRow added in v0.0.2

type DatabaseExistsRow struct {
	DatabaseExists bool `db:"DatabaseExists"`
}

type ParsedColumns

type ParsedColumns struct {
	TableName  string
	Attributes []Attribute
}

type TableExistsRow added in v0.0.2

type TableExistsRow struct {
	TableExists bool `db:"TableExists"`
}

Jump to

Keyboard shortcuts

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