JSPM

@sheetbase/tamotsux-server

0.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 15
  • Score
    100M100P100Q37683F
  • License MIT

Tamotsu ORM that support multiple sheets.

Package Exports

  • @sheetbase/tamotsux-server

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@sheetbase/tamotsux-server) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Sheetbase Module: @sheetbase/tamotsux-server

Tamotsu ORM that support multiple sheets.

Build Status Coverage Status NPM License clasp Support me on Patreon PayPal Ask me anything

Install

Using npm: npm install --save @sheetbase/tamotsux-server

import * as Tamotsux from "@sheetbase/tamotsux-server";

As a library: 15fzNG5GZ7Ko6ygGYsMvthZLHovrc3eI_BEwFhwciOWVsBx47WCo13wvW

Set the Indentifier to TamotsuxModule and select the lastest version, view code.

declare const TamotsuxModule: { Tamotsux: any };
const Tamotsux = TamotsuxModule.Tamotsux;

Scopes

https://www.googleapis.com/auth/spreadsheets

Usage

Examples

import * as Tamotsux from "./public_api";

const defaultSpreadsheet = SpreadsheetApp.openById(
  "1Zz5kvlTn2cXd41ZQZlFeCjvVR_XhpUnzKlDGB8QsXoI"
);

export function example1(): void {
  Tamotsux.initialize();
  const FooTable = Tamotsux.Table.define({
    sheetName: "foo",
    spreadsheet: defaultSpreadsheet
  });

  const first = FooTable.first();
  Logger.log(first);
}

export function example2(): void {
  Tamotsux.initialize(defaultSpreadsheet); // dafault
  const BarTable = Tamotsux.Table.define({ sheetName: "bar" });

  const all = BarTable.all();
  Logger.log(all);
}

License

@sheetbase/tamotsux-server is released under the MIT license.