Skip to content

Automatically exported from code.google.com/p/ibatisglue

Notifications You must be signed in to change notification settings

dnknitro/ibatisglue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

The tool would parse iBatis maps and display full combined SQL query based on the map's ID.

E.g. there are 2 maps with 1 statement in each map.

<!--1st-->
...
	<statements>
		<sql id="sql1">
			SomeColumn1, SomeColumn2
		</sql>
	</statements>
...

<!--2nd-->
...
	<statements>
		<select id="SelectSomething">
			SELECT 
				<include refid="Persistence1.sql1" /> 
			FROM someTable
		</select>
	</statements>
...

Thus calling the tool with 1 argument:

	>iBatisGlue.ConsoleApp.exe SelectSomething

would return following sql:

/*Persistence1.Persistence2.SelectSomething*/

                        SELECT

/*Persistence1.sql1*/

                        SomeColumn1, SomeColumn2

                        FROM someTable

It can be configured in the Visual Studio external tools to be called with $(CurText) argument, thus if you select SelectSomething in your code and call this external tool it will output the result into the VS Output window.

http://imgur.com/6XqA2.jpg

About

Automatically exported from code.google.com/p/ibatisglue

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages