preview

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: MIT Imports: 10 Imported by: 3

Documentation

Index

Constants

View Source
const (
	// MaxNumDatasetRowsInPreview is the highest number of rows a dataset preview
	// can contain
	MaxNumDatasetRowsInPreview = 100
	// MaxReadmePreviewBytes determines the maximum amount of bytes a readme
	// preview can be. three bytes less than 1000 to make room for an elipsis
	MaxReadmePreviewBytes = 997
)

Variables

This section is empty.

Functions

func Create

func Create(ctx context.Context, ds *dataset.Dataset) (*dataset.Dataset, error)

Create generates a preview for a dataset version It expects the passed in dataset to have any relevant script files already loaded Preview currently includes:

  • body: 100 rows
  • readme: first 997 bytes
  • meta: all
  • commit: all
  • structure: all
  • stats: none
  • viz: all
  • transform: all

Types

This section is empty.

Jump to

Keyboard shortcuts

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