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

peaksqlite-entity-maker

v0.0.8

Published

用于PeakSqlite项目的实体生成器

Downloads

4

Readme

peaksqlite-entity-maker

用于PeakSqlite项目的实体生成器,需要配合PeakSqlite项目使用,可以根据建表的sql语句自动生成数据实体代码,简化Sqlite的操作。 每个表将会生成一个实体,必需要有一个主键,并且主键的数据类型应为integer,但主键名可以是其它名字。

#Information

Conis

Blog: http://iove.net

E-mail: [email protected]

#Usage

自用模块,使用说明欠奉,可参考测试用例中的代码,请参考示例代码,欢迎完善。 对建表的Sql语句会有较高的要求,没有加入容错设计。 日期类型需要注意,因为FMDB无法处理日期格式的数据类型,我一般的做法是准备两套sql代码,建表时日期类型的字段为float或者double类型,用于生成代码的字段类型为date类型。 例如: 建表的时候使用:CREATE TABLE if not exists todolist(id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, timestamp FLOAT, done boolean DEFAULT false, todo TEXT, todo_level integer)

生成实体代码的时候使用:CREATE TABLE if not exists todolist(id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, timestamp datetime, done boolean DEFAULT false, todo TEXT, todo_level integer)

注意timestamp的数据类型是有变化的,然后在实体代码中处理,存储到数据库的时候转换一下,取数据的时候也需要转换一下。

谁有什么好招?支个招,确实很麻烦!!!

#LICENSE MIT