Suiteql
Run SQL queries against Oracle NetSuite using SuiteQL through SuiteTalk Rest Webservices.
Install / Use
/learn @ehmad11/SuiteqlREADME
SuiteQL
Run SQL queries against NetSuite using SuiteQL through SuiteTalk Rest Webservices.
This class extends netsuite-rest
Installation
npm i suiteql
ESM or CommonJS?
This package is still compatible with CommonJS. But some dependencies, like got are now available only in ESM. This package will not be modified to support latest got versions to stay compatible with CommonJS. Instead you can use the native ESM module netsuite-api-client, which is a fork of the current package.
Quick Start
const suiteql = require('suiteql');
let suiteQL = new suiteql({
consumer_key: process.env.consumer_key,
consumer_secret_key: process.env.consumer_secret_key,
token: process.env.token,
token_secret: process.env.token_secret,
realm: process.env.realm,
base_url: process.env.base_url
});
query
query(string, limit = 1000, offset = 0)
-
string - Select query to run
-
limit - Limit number of rows, max is 1000
-
offset - Rows to start from
This method returns with the promise support, response will be in JSON format
Example
let transactions = await suiteQL.query("select id from transaction", 10, 0);
queryAll (Stream)
When working on large number of rows, stream is handy
queryAll(string, limit = 1000)
-
string - Select query to run
-
limit - Limit number of rows, max is 1000
Example
let items = [];
let st = suiteQL.queryAll(`
select
tranid, id from transaction
where
rownum <= 30
`);
st.on("data", (data) => {
items.push(data);
});
st.on("end", () => {
console.log("stream ended")
});
Related Skills
oracle
350.8kBest practices for using the oracle CLI (prompt + file bundling, engines, sessions, and file attachment patterns).
prose
350.8kOpenProse VM skill pack. Activate on any `prose` command, .prose files, or OpenProse mentions; orchestrates multi-agent workflows.
Command Development
110.4kThis skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
Plugin Structure
110.4kThis skill should be used when the user asks to "create a plugin", "scaffold a plugin", "understand plugin structure", "organize plugin components", "set up plugin.json", "use ${CLAUDE_PLUGIN_ROOT}", "add commands/agents/skills/hooks", "configure auto-discovery", or needs guidance on plugin directory layout, manifest configuration, component organization, file naming conventions, or Claude Code plugin architecture best practices.

