Skip to content

Commit aeb5a49

Browse files
committed
Implement DevupModel
1 parent 17edfa4 commit aeb5a49

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

__tests__/sql/index.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ describe('sqlite', async () => {
6464
createdAt: Date
6565
}
6666
// get current revision
67-
// const currentRevision = await pool.getCurrentRevision()
67+
const currentRevision = await pool.getCurrentRevision()
6868
// // create revision
69-
// const nextRevision = await pool.createRevision()
70-
// const revisionSql = await pool.getRevisionSql(nextRevision, true)
71-
// console.log(revisionSql)
69+
const nextRevision = await pool.createRevision()
70+
const revisionSql = await pool.getRevisionSql(nextRevision, true)
71+
console.log(revisionSql)
7272
// // migrate to next revision
7373
// await pool.migrate(nextRevision)
7474

libs/node/model/main.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/* prettier-ignore */
4+
module.exports=require('./index')
5+
class DevupModel{}
6+
module.exports.DevupModel=DevupModel

libs/node/model/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "@devup-api/model",
33
"version": "0.0.0",
4-
"main": "index.js",
5-
"types": "index.d.ts",
4+
"main": "main.js",
5+
"types": "main.d.ts",
66
"napi": {
77
"name": "model",
88
"triples": {}

0 commit comments

Comments
 (0)