loader

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package loader is the interface for loading an external resource into cre

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLoader

func NewLoader(driver cre.Driver, opts ...LoaderOption) (cre.Loader, error)

Types

type LoaderOption

type LoaderOption func(*loaderOptions)

func WithResources

func WithResources(resources ...string) LoaderOption

type SQLLoader

type SQLLoader struct {
	// contains filtered or unexported fields
}

func NewSQLLoader

func NewSQLLoader(driver cre.Driver) *SQLLoader

func (*SQLLoader) Dialect

func (l *SQLLoader) Dialect() string

func (*SQLLoader) Load

func (l *SQLLoader) Load(ctx context.Context, name string) (*spec.Schema, error)

Directories

Path Synopsis
sql

Jump to

Keyboard shortcuts

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