Skip to content

IoT Edge Module that execute Sql query and send the result to IoT Hub

Notifications You must be signed in to change notification settings

IOTD-Americas/SqlReaderModule

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

IoT Edge Module that reads from Sql Server using a static sql query

This module use Environmental variables, you can set them in the deployment manifest. Deplyment manifest extract:

"SqlReaderModule": {
	"version": "1.0",
	"type": "docker",
	"status": "running",
	"restartPolicy": "always",
	"settings": {
		"image": "myacr.azurecr.io/SqlReaderModule.amd64",
		"createOptions": {}
	},
	"env": {
		"ConnectionString": {
		"value": ""
		},
		"SqlQuery": {
		"value": "SELECT top 1 * FROM MyTable"
		},
		"IsSqlQueryJson": {
		"value": "false"
		},
		"PoolingIntervalMiliseconds": {
		"value": "60000"
		},
		"MaxBatchSize": {
		"value": "200"
		},
		"Verbose": {
		"value": "true"
		}
	}
}

"IsSqlQueryJson": true --only used when query output is json, in any other case false

Roadmap improvements

  • Secure connection string
  • Support Stored Procedures

About

IoT Edge Module that execute Sql query and send the result to IoT Hub

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages