npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@suna66/ddbpartiql-wrap

v0.5.2

Published

partiql cli for dynamodb

Readme

ddbql - dynamodb partiql cli tool

Overview

PartiQL front-end wrapper tool for DynamoDB

Install

$ npm install -g @suna66/ddbpartiql-wrap

Build & Install

$ npm i
$ npm run build
$ npm install -g .

Command

ddbql [OPTIONS] [scritp file]

OPTIONS:
    -h/--help                   printing how to use
    -p/--profile {profile}      aws profile name
    -r/--region  {region}       aws region name
    -v/--verbose                verbose mode
    -E/--endpoint {url}         endpoint url
    -F/--format {json/table}    query response format(default: json)
    --access_key {value}        aws credential access key id
    --secret_access_key {value} aws credential secret access key
    --nostop                    not stop script when error is occurred

Example

Insert

ddbql> insert into "ddb-test-table" value {'id': 10, 'name': 'name1','age': 20};

Select

ddbql> select * from "ddb-test-table";

You can also use the LIMIT clause.

ddbql> select * from "ddb-test-table" limit 5;

Select for INDEX

ddbql> select * from "ddb-test-table"."ddb-test-index" where name='name1';

Update

ddbql> update "ddb-test-table"
  set age = 25 
  set address="hogehoge"
  where id=10 and name='name1';

Delete

ddbql> delete from "ddb-test-table" where id=10 and name='name1';

Show Tables(extension query)

ddbql> show tables;

Describe Table(extension query)

ddbql> desc "ddb-test-table";

Create Table(extension query)

ddbql> create table "test-table"(id N HASH, age N RANGE, index global "index-global"(age N HASH));

Truncate Table(extension query)

ddbpq> truncate table "test-table";

Drop Table(extension query)

ddbql> drop table "test-table";

Clear prompt

ddbql> clear

Exit partiql prompt

ddbql> exit

Simple variable system

ddbql> @variable = ddb-test-table;
ddbql> select * from "${variable}"

build-in variables

  • UUID : Generating UUID.
  • NOW : Current UNIX epoch time(Second).

build-in functions

  • sleep {integer} : sleep thread(ms)
  • clear : clear console
  • exit : exit prompt
  • connect : re-connect dynamodb
    [OPTIOIN]
    -p/--profile {profile}      aws profile name
    -r/--region  {region}       aws region name
    -E/--endpoint {url}         endpoint url
    --access_key {value}        aws credential access key id
    --secret_access_key {value} aws credential secret access key
  • . {script file} : load script file

Other Commands

  • !? show command list
  • !h show execute query history
  • !v show variables and values
  • !! re-run previouse query(if previous query returned NextToken, retrying query will add the NextToken)

Copyright and Disclaimer

This software is free software. Please feel free to use it. The copyright is held by the author, "suna66".

Neither I, anyone related to me, nor any of the organizations or groups I belong to, will be held responsible for any damages, losses, or other inconveniences that may arise from the use of this software. Use at your own risk.