Usage
To use Holysheets!
in your TypeScript project, you need to import it and initialize it with your Google Sheets credentials. Here’s an example:
interface User {
name: string;
email: string;
age: number;
}
const holySheets = new Holysheets!{
spreadsheetId: "spreadsheet-id",
privateKey: credentials.private_key, // Your credentials
clientEmail: credentials.client_email, // Your client email
});
const user = holySheets.base<User>("Users");
await user.findMany({
where: {
name: {
contains: "Joe",
},
},
});
/// Find all users named Joe in Users sheet
Warning
Before using Holysheets! it’s important to have Google credentials for your project. For more information on how to obtain these, please refer to the Getting Credentials guide.