Working on iPhone Development. Its a whole new experience working on MAC Platform and using XCode. Objective C is a magical language and when combined with UIKit from Apple forms "COCOA Touch" framework. Will be posting some tutorials and examples on how to build applications for iPhone / iOS development. Stay tuned....
Normally we connect Nodejs to the databases like SQLite, MongoDB, Postgres etc . In this multiple part post, I am going to show you, how we can connect Nodejs with Microsoft's SQL Server using Knex and run CRUD operations. 1. Installation of required packages In order to connect Nodejs to SQL Server with Knex, we will need following node packages installation: i. npm install knex ii. npm install mssql Once the packages are installed, we can write the following code to connect: //Code to KNEX connection settings. var knex = require('knex')({ client: 'mssql', connection: { user: 'sa', password: 'pwd', server: 'localhost', database: 'Test' } }); //Code to query the Table DEPT knex.select("*").from("dept") .then(function (depts){ depts.forEach((dept)=>{ //use of Arrow Function console.log({...dept}); }); }).catch(function(err) { ...
Comments
a request sir.. please conduct some sessions for android development in LPU
Regards
Rakesh
Please register for the workshop on Android Application Development being held i LPU during March 30- April 1, 2012. We are offering free of cost Java training from March 26-28, 2012. Looking for more information, call 9463338988(Umesh, LPU Student Co-ordinator).