Documentation
¶
Overview ¶
Copyright (c) 2025 Way To Go LLC. All rights reserved.
This file is part of SSDB (Spreadsheet Database).
Licensed under the MIT License. See LICENSE file in the project root for full license information.
Copyright (c) 2025 Way To Go LLC. All rights reserved.
This file is part of SSDB (Spreadsheet Database).
Licensed under the MIT License. See LICENSE file in the project root for full license information.
Copyright (c) 2025 Way To Go LLC. All rights reserved.
This file is part of SSDB (Spreadsheet Database).
Licensed under the MIT License. See LICENSE file in the project root for full license information.
Copyright (c) 2025 Way To Go LLC. All rights reserved.
This file is part of SSDB (Spreadsheet Database).
Licensed under the MIT License. See LICENSE file in the project root for full license information.
Copyright (c) 2025 Way To Go LLC. All rights reserved.
This file is part of SSDB (Spreadsheet Database).
Licensed under the MIT License. See LICENSE file in the project root for full license information.
Copyright (c) 2025 Way To Go LLC. All rights reserved.
This file is part of SSDB (Spreadsheet Database).
Licensed under the MIT License. See LICENSE file in the project root for full license information.
Copyright (c) 2025 Way To Go LLC. All rights reserved.
This file is part of SSDB (Spreadsheet Database).
Licensed under the MIT License. See LICENSE file in the project root for full license information.
Copyright (c) 2025 Way To Go LLC. All rights reserved.
This file is part of SSDB (Spreadsheet Database).
Licensed under the MIT License. See LICENSE file in the project root for full license information.
Copyright (c) 2025 Way To Go LLC. All rights reserved.
This file is part of SSDB (Spreadsheet Database).
Licensed under the MIT License. See LICENSE file in the project root for full license information.
Copyright (c) 2025 Way To Go LLC. All rights reserved.
This file is part of SSDB (Spreadsheet Database).
Licensed under the MIT License. See LICENSE file in the project root for full license information.
Copyright (c) 2025 Way To Go LLC. All rights reserved.
This file is part of SSDB (Spreadsheet Database).
Licensed under the MIT License. See LICENSE file in the project root for full license information.
Index ¶
- Variables
- func AnyIfy(in [][]string) (out [][]any)
- func BuildRowdata(data [][]string) (rowData []*sheets.RowData)
- func BuildRowdataAny(data [][]any) (rowData []*sheets.RowData)
- func DeAnyIfy(in [][]any) (out [][]string)
- func FormatNumericColumn(corner bool, colnum int64) (colName string)
- func FormatNumericRow(corner bool, rownum int64) (rowName string)
- func GenRange(sheetID, minx, maxx, miny, maxy int64) (rng *sheets.GridRange)
- func GenRangeString(page string, minx, maxx, miny, maxy int) string
- func GetCellDataString(cell *sheets.CellData) (val string)
- func ParseSymbolicCell(corner bool, cellName string) (row, col int64)
- func ParseSymbolicColumn(colName string) (col int64)
- func ParseSymbolicRange(corner bool, cellName string) (row, col int64)
- func ParseSymbolicRangeNW(cellName string) (row, col int64)
- func ParseSymbolicRangeSE(cellName string) (row, col int64)
- func ParseSymbolicRow(rowNumStr string) (row int64)
- func RangeFromString(sheetID int64, rngst string) *sheets.GridRange
- func RangeToString(page string, rng *sheets.GridRange) (rngst string)
- type Cell
- type DBRange
- type RangeTestCase
- type Row
- type SSDB
- func (db *SSDB) FindSheet(rng *sheets.GridRange) *Sheet
- func (db *SSDB) Loader(ctx context.Context) (err error)
- func (db *SSDB) Merge(rresp *sheets.BatchGetValuesResponse) error
- func (ssdb *SSDB) NewDBRange(sheetname string, row, col, rows, cols int64) (dbRange *DBRange)
- func (ssdb *SSDB) NewDBRangeFromSymbolicRange(symbolicRange string) (dbRange *DBRange)
- func (ssdbHandle *SSDB) NewUpdater() *Updater
- func (db *SSDB) RangeToString(rng *sheets.GridRange) (rngst string)
- func (db *SSDB) ReloadDBGet(ctx context.Context) (err error)
- func (db *SSDB) SheetIter(f func(sheetname string, sheet *Sheet))
- func (ssdb *SSDB) SheetLookup(sheetMatch string) (foundSheet *Sheet)
- func (db *SSDB) TextToSheetsRange(text string) (result *sheets.GridRange, err error)
- type Sheet
- func (sheet *Sheet) CompareVals(dbrange *DBRange, vals [][]any) (res bool)
- func (sheet *Sheet) CopyVals(dbrange *DBRange) (vals [][]any)
- func (sheet *Sheet) GetExtents() (res *DBRange)
- func (sheet *Sheet) GetID() int64
- func (sheet *Sheet) GetRange(dbrange *DBRange) (_data [][]any)
- func (sheet *Sheet) GetRowN(N int64) *Row
- func (sheet *Sheet) RowIter(f func(row *Row))
- func (sheet *Sheet) SearchV(header bool, f func(row *Row) bool) *Row
- type Updater
Constants ¶
This section is empty.
Variables ¶
var AttnColor = &sheets.Color{
Red: 1.0,
Green: 1.0,
Blue: 0.4,
}
Functions ¶
func BuildRowdata ¶
func BuildRowdata(data [][]string) (rowData []*sheets.RowData)
func BuildRowdataAny ¶
func BuildRowdataAny(data [][]any) (rowData []*sheets.RowData)
func FormatNumericColumn ¶
Accepts input A, B, C, ..., Z, AA, AB, ... AZ, ..., ZZ
func FormatNumericRow ¶
Accepts input A, B, C, ..., Z, AA, AB, ... AZ, ..., ZZ
func GenRangeString ¶
func GetCellDataString ¶
func GetCellDataString(cell *sheets.CellData) (val string)
func ParseSymbolicCell ¶
corner: false UL, true SE
func ParseSymbolicColumn ¶
Accepts input A, B, C, ..., Z, AA, AB, ... AZ, ..., ZZ
func ParseSymbolicRange ¶
corner: false UL, true SE
func ParseSymbolicRangeNW ¶
func ParseSymbolicRangeSE ¶
func ParseSymbolicRow ¶
Accepts input A, B, C, ..., Z, AA, AB, ... AZ, ..., ZZ
func RangeFromString ¶
func RangeToString ¶
Types ¶
type DBRange ¶
type DBRange struct {
// contains filtered or unexported fields
}
func (*DBRange) NeedsGrowth ¶
type RangeTestCase ¶
type Row ¶
func (*Row) GetCellByName ¶
type SSDB ¶
type SSDB struct { sync.Mutex SheetsService *sheets.Service SpreadsheetID string AppendRows map[string]int64 // contains filtered or unexported fields }
func (*SSDB) NewDBRange ¶
func (*SSDB) NewDBRangeFromSymbolicRange ¶
func (*SSDB) NewUpdater ¶
func (*SSDB) RangeToString ¶
func (*SSDB) SheetLookup ¶
func (*SSDB) TextToSheetsRange ¶
TextToSheetsRange converts a text representation back to a *sheets.Range Handles formats like: - Sheet1!A1:B2 - 'Sheet Name with spaces'!A1:C3 - A1:D5 (assumes current sheet)