0.3.0 • Published 5 years ago

coal v0.3.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

coal

Base on knexjs

Install

npm install coal --save

Getting start

database configure

config.js

exports.database = {
  client: "mysql",
  connection:{
    host : 'localhost',
    user : 'root',
    password : '12345678',
    database : 'page-monitor'
  },
  debug: false
}

schema:

exports.schema = {
  id: "increments primary",
  name: "string",
  url:"string",
}

init tables

Coal = require('coal')
config = require('./config')
await Coal.init(_config.database)
await Coal.createTable([schema])

Get knexjs instance

Coal.get()
0.3.0

5 years ago

0.2.9

5 years ago

0.2.8

6 years ago

0.2.7

7 years ago

0.2.6

7 years ago

0.2.5

7 years ago

0.2.4

7 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.0.9-p

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago