Skip to content

Instantly share code, notes, and snippets.

@masmithrpg
masmithrpg / index.js
Created October 3, 2018 14:18
node.js crud HY010 error
const db = require('/QOpenSys/QIBM/ProdData/OPS/Node6/os400/db2i/lib/db2a')
const body_parser = require('body-parser')
const express = require('express')
const app = express()
const dbconn = new db.dbconn()
dbconn.conn("*LOCAL")
const stmt = new db.dbstmt(dbconn)
const schema = 'NODELIB'
@masmithrpg
masmithrpg / index.js
Created October 5, 2018 17:47
HY010 error
var db = require('idb-connector')
var body_parser = require('body-parser')
var express = require('express')
var app = express()
var dbconn = new db.dbconn()
dbconn.conn("*LOCAL")
var stmt = new db.dbstmt(dbconn)
var schema = 'NODELIB'