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.
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
Docs homepage: https://sheetbase.github.io/tamotsux-server
API reference: https://sheetbase.github.io/tamotsux-server/api
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.