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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@snail-cloud/tablestore-orm

v1.0.7

Published

> 通过ORM的方式简化阿里云TableStore使用

Downloads

10

Readme

tablestore-orm

通过ORM的方式简化阿里云TableStore使用

特性

  • 🌱 适用于 Node.js 4.0 及以上版本
  • 😊 使用 TypeScript 进行开发封装,提供完善的类型定义
  • 🏗 针对表、表数据、多行数据 分别提供了不同的封装
  • 🤖 自动填充全局唯一 id 、created、updated 字段

安装

1. 使用 npm 或 yarn 安装

$ npm install @snail-cloud/tablestore-orm --save

$ yarn add @snail-cloud/tablestore-orm

2. 在项目中使用

import TableStoreOrm from "@snail-cloud/tablestore-orm";

// 初始化 具体配置项请查看文档
const Orm = new TableStoreOrm('<config>')

// 添加一行数据
const {sucess,data} = Orm.insert({tableName:"<tableName>",columns:{phone:"<phone>"}})

约定

我们对表的创建有严格的规定,请务必按照如下规范设计表

初始化表时,需要给定下面三个字段

  • id: STRING: 主键/分区建
  • created: INTEGER: 预设列
  • updated: INTEGER: 预设列

注意:只设置 id 这一个主键,其他数据全部存储为 预设列,请不要在设置其他主键

示例

| 名称 | 类型 | 键类型 | 注释 | | -------- | :----: | :---------: | :--------------------: | | id | string | 主键/分区键 | 必须定义,名称不可变 | | phone | string | 预设键 | 手机号 | | password | string | 预设键 | 密码 | | nickname | string | 预设键 | 昵称 | | ... | ... | ... | ... | | created | string | 预设键 | 框架会自动维护更新 | | updated | string | 预设键 | 框架会自动维护更新 |

参与贡献

欢迎加入到 tablestore-orm 的建设队伍中来,请访问 https://github.com/snail-cloud/tablestore-orm 。