Skip to content

Commit

Permalink
chore(nodejs): update snippets to use a unique table name (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
sklarsa authored Apr 25, 2024
1 parent fc98198 commit f8c221e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions examples/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ async function run() {
// send the data over the authenticated connection
let bday = Date.parse('1856-07-10');
sender
.table('inventors')
.table('inventors_nodejs')
.symbol('born', 'Austrian Empire')
.timestampColumn('birthday', bday, 'ms') // epoch in millis
.intColumn('id', 0)
.stringColumn('name', 'Nicola Tesla')
.at(Date.now(), 'ms'); // epoch in millis
bday = Date.parse('1847-02-11');
sender
.table('inventors')
.table('inventors_nodejs')
.symbol('born', 'USA')
.timestampColumn('birthday', bday, 'ms')
.intColumn('id', 1)
Expand Down
4 changes: 2 additions & 2 deletions examples/auth_tls.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ async function run() {
// send the data over the authenticated and secure connection
let bday = Date.parse('1856-07-10');
sender
.table('inventors')
.table('inventors_nodejs')
.symbol('born', 'Austrian Empire')
.timestampColumn('birthday', bday, 'ms') // epoch in millis
.intColumn('id', 0)
.stringColumn('name', 'Nicola Tesla')
.at(Date.now(), 'ms'); // epoch in millis
bday = Date.parse('1847-02-11');
sender
.table('inventors')
.table('inventors_nodejs')
.symbol('born', 'USA')
.timestampColumn('birthday', bday, 'ms')
.intColumn('id', 1)
Expand Down
4 changes: 2 additions & 2 deletions examples/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ async function run() {
// add rows to the buffer of the sender
let bday = Date.parse('1856-07-10');
sender
.table('inventors')
.table('inventors_nodejs')
.symbol('born', 'Austrian Empire')
.timestampColumn('birthday', bday, 'ms') // epoch in millis
.intColumn('id', 0)
.stringColumn('name', 'Nicola Tesla')
.at(Date.now(), 'ms'); // epoch in millis
bday = Date.parse('1847-02-11');
sender
.table('inventors')
.table('inventors_nodejs')
.symbol('born', 'USA')
.timestampColumn('birthday', bday, 'ms')
.intColumn('id', 1)
Expand Down
2 changes: 1 addition & 1 deletion examples/workers.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async function run() {
let count = 0;
await subscribe(workerData.ticker, async (tick) => {
sender
.table('prices')
.table('prices_nodejs')
.symbol('ticker', tick.ticker)
.floatColumn('price', tick.price)
.atNow();
Expand Down

0 comments on commit f8c221e

Please sign in to comment.