sheets

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(opts ...option.RequestOption) *Client

func (*Client) Delete

func (c *Client) Delete(
	ctx context.Context,

	sheetId flatfilego.SheetId,
	opts ...option.RequestOption,
) (*flatfilego.Success, error)

Deletes a specific sheet from a workbook

func (*Client) Get

Returns a sheet in a workbook

func (*Client) GetCellValues

func (c *Client) GetCellValues(
	ctx context.Context,

	sheetId flatfilego.SheetId,
	request *flatfilego.GetFieldValuesRequest,
	opts ...option.RequestOption,
) (*flatfilego.CellsResponse, error)

Returns record cell values grouped by all fields in the sheet

func (*Client) GetRecordCounts

Returns counts of records from a sheet

func (*Client) GetRecordsAsCsv

func (c *Client) GetRecordsAsCsv(
	ctx context.Context,

	sheetId flatfilego.SheetId,
	request *flatfilego.GetRecordsCsvRequest,
	opts ...option.RequestOption,
) (io.Reader, error)

Returns records from a sheet in a workbook as a csv file

func (*Client) GetSheetCommits

Returns the commit versions for a sheet

func (*Client) List

Returns sheets in a workbook

func (*Client) LockSheet

func (c *Client) LockSheet(
	ctx context.Context,

	sheetId flatfilego.SheetId,
	opts ...option.RequestOption,
) (*flatfilego.Success, error)

Locks a sheet

func (*Client) UnlockSheet

func (c *Client) UnlockSheet(
	ctx context.Context,

	sheetId flatfilego.SheetId,
	opts ...option.RequestOption,
) (*flatfilego.Success, error)

Removes a lock from a sheet

func (*Client) UpdateSheet added in v0.0.13

func (c *Client) UpdateSheet(
	ctx context.Context,

	sheetId flatfilego.SheetId,
	request *flatfilego.SheetUpdateRequest,
	opts ...option.RequestOption,
) (*flatfilego.SheetResponse, error)

Updates Sheet

func (*Client) Validate

func (c *Client) Validate(
	ctx context.Context,

	sheetId flatfilego.SheetId,
	opts ...option.RequestOption,
) (*flatfilego.Success, error)

Trigger data hooks and validation to run on a sheet

Jump to

Keyboard shortcuts

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