www.sqledit.com
DTM SQL editor Online Documentation
General
Product profile
Product versions
Database tools
Install software
Upgrade software
Uninstall software
System requirements
How to buy
Product features
User interface
Hot keys
SQL editor
Search and replace
Data export
SQL library
Results viewer
Connect to database
Macros: definition and using
Database schema viewer
Find database object
Data editor
Schema object
Filter database schema
Version control
Command line options
Settings and options
SQL builder
SQL builder
Select type of the statement
Specity objects for select
Build WHERE cause
Select tables or views
Select one table or view
Select fields
Set or change values
ORDER BY and GROUP BY
Create table
Create index
Create view
Plug-ins and SDK
Plug-ins and SDK
Data structures
Plug-in sample, sources
Plug-ins Library
General information
Directory by DBMS
MS SQL Server
Run Query Analyzer
Oracle
Run SQL*Plus
General
Insert Module Header
External preprocessor
Run external tool
Run after script execution
Save/Load Hisroty
Send script by e-mail
Simply preprocessor
WinDiff interface
Directory by functions
Editor plug-ins
Insert Module Header
Run external tool
Run Oracle SQL*Plus
Run MS Query Analyzer
Send script by e-mail
Schema plug-ins
Results plug-ins
Common plug-ins
Run WinDiff
Save/Load Hisroty
Preporcessors
External preprocessor
Simply preprocessor
After execution plug-ins
Run after script execution
Information
Licence agreemnet
Technical support
Send feedback
FAQ and tips
Program tutorial
Troubleshooting guide
Glossary
SQL reference
SQL quick reference

SDK data structures

ED_DATA structure description

  1. iSize item contains size of the ED_DATA structure (sizeof(ED_DATA)).
  2. Version[3] array of three integer values contains version of DTM SQL editor. 1,0,9 means 1.00.90
  3. DSN string contains name of the current "data source name".
  4. user string with user name who is currently logged in.
  5. owner contains name of the database schema currently selected.
  6. database contains name of the current database or empty string if not supported or not selected.
  7. TEXT_PAGES - pointer of the function with one parameter returns number of editor tabs available and current active page
  8. RESULT_PAGES - pointer of the function with one parameter returns number of results tabs available and current active page
  9. GET_TEXT pointer of the function with three parameters: page number, pointer for text buffer, size of the buffer. This function provides extraction text from selected editor page.
  10. SET_TEXT pointer of the function with two parameters: page number, pointer for null-terminated string with text. This function provides put text for selected editor page.
  11. GRID_SIZE pointer of the function with three parameters: results page number, pointers for X and Y dimensions. Function returns size of the grid for selected page.
  12. GET_CELL pointer of the function with five parameters: results page number, X and Y coordinates of the cell, pointer for text buffer, size of the buffer. This function returns value of the selected cell as a string.
  13. password string with password of the user who is currently logged in.
  14. hMain - HWND of the main DTM SQL editor window
  15. db - reserved internal pointer. Please don't use or modify this structure item.
  16. SchemaItem - reserved internal pointer. Please don't use or modify this structure item.
  17. interf - name of interface currently selected at "Connect" tab.
  18. prod - product code plug-in was called from. See DTM_PRODUCT enum for details.

PL_DATA structure description

  1. iSize item contains size of the PL_DATA structure (sizeof(PL_DATA)).
  2. type - type of the plug-in, see above.
  3. MenuItem - string (32 bytes or less) with name of the plug-in menu item.