dbms

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package dbms defines service to crate or check table schema

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	sync.Mutex
	// contains filtered or unexported fields
}

TODO shall this service to create/checks table move to sqlx as service ?

func New

func New() *Service

New creates dbms service

func (*Service) EnsureTable

func (c *Service) EnsureTable(ctx context.Context, connector *view.Connector, cfg *TableConfig) (provider.SqlSource, error)

type TableConfig

type TableConfig struct {
	RecordType     reflect.Type
	TableName      string
	Dataset        string
	CreateIfNeeded bool
	GenerateAutoPk bool
}

TODO shall this service to create/checks table move to sqlx as service ?

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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