0.3.0 • Published 6 years ago

coal v0.3.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 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

6 years ago

0.2.9

6 years ago

0.2.8

7 years ago

0.2.7

8 years ago

0.2.6

8 years ago

0.2.5

8 years ago

0.2.4

8 years ago

0.2.3

9 years ago

0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.0.9-p

10 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago