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 🙏

© 2024 – Pkg Stats / Ryan Hefner

vertical-db

v1.0.4

Published

levelDB distributed,BigTable model.

Downloads

13

Readme

vertical(V2)

##levelDB distributed,Server and Client!

#How to use

Server

>git clone https://github.com/zy445566/vertical.git
>cd vertical
>npm install
>npm run server #Server start(recommend pm2 when production environment)

Client

>cd your-project
>npm install vertical-db --save

##easy example

const Vertical = require('vertical-db');
const Client = Vertical.Client;
const Common = Vertical.Common;

let timestamp = Common.genTimestamp();
let table = 'tmp';
let client = new Client('127.0.0.1', 5234);
// or let client = new Client('127.0.0.1', 5234,password(read or write Key),is_write(true or false));

//when node version<7.6 :
client.connection().then((res)=>{
    return client.insertRow('111','user',{name:'zs',age:20},timestamp,table);
})
.then((res)=>{
    return client.getRow('111','user',res,table);
}).then((res)=>{
    console.log(res);
    client.disConnection();
}).catch((err)=>{
    console.log(err);
});

//when node version>=7.6 :
async function example(){
    await client.connection();
    let res = await client.insertRow('111','user',{name:'zs',age:20},timestamp,table);
    let getRes = await client.getRow('111','user',res,table);
    console.log(res,getRes);
    client.disConnection();
}
// example();

more example:click here

#ThriftCode(we use c,java,php,python when we use Vertical)

Thrift Site

namespace cpp vertical
namespace d vertical
namespace dart vertical
namespace java vertical
namespace php vertical
namespace perl vertical
namespace haxe vertical

struct DataKey {
1:string row_key,
2:string column_key,
3:string timestamp,
4:string table
}

struct DataKeyGen {
1:string row_key,
2:string column_key,
3:string timestamp,
4:string table
}

struct DataColumnKey {
1:string row_key,
2:string column_key,
3:string table
}

struct DataColumnOption {
1:i32 limit,
2:bool reverse,
3:bool fillCache
}

exception VerticalError {
1:string message
}

service Vertical
{
  void ping(),
  string getRow(1:DataKey data_key) throws (1:VerticalError error),
  string updateRow(1:DataKey data_key,2:string row_value) throws (1:VerticalError error),
  string insertRow(1:DataKeyGen data_key_gen,2:string row_value) throws (1:VerticalError error),
  bool delRow(1:DataKey data_key) throws (1:VerticalError error),
  string getColumn(1:DataColumnKey data_column_key,2:DataColumnOption data_column_option) throws (1:VerticalError error),
  i32 delColumn(1:DataColumnKey data_column_key,2:DataColumnOption data_column_option) throws (1:VerticalError error),
  i32 updateColum(1:DataColumnKey data_column_key,2:string row_value,3:DataColumnOption data_column_option) throws (1:VerticalError error),
  i32 insertColum(1:DataColumnKey data_column_key,3:string row_value_list) throws (1:VerticalError error),
  string isSync(1:string server_sign,2:string timestamp) throws (1:VerticalError error),
  i32 writeSyncData(1:string sync_write_data) throws (1:VerticalError error)
}