MiniM Overview |
MiniM
Technology Overview | Feb 10, 2010
MiniM OverviewMiniM Server Connect MiniM Server Connect is a client dll module to connect to MiniM Database server. Dll does not requires registration in the registry or complex installation. minimsc.dll need to be placed in PATH or in current directory with client application. Dll exports functions using standard windows calling conventions and can be used in all development tools which can interact with windows dll. MiniM Server Connect has several examples for C++, for Delphi, for Java, for C#, for VB.NET, and for ActivePerl. Examples show how to connect, disconnect, read data, execute commands, get data from server using special modes. Java connection use special JNI dll, full source code included. MiniM Server Connect give very simple to use API. For example, read data in C# can be such as: // read version info MiniMSC.MINIMSTR sexpr = new MiniMSC.MINIMSTR(); MiniMSC.MINIMSTR svalue = new MiniMSC.MINIMSTR(); MiniMSC.StringToMINIMSTR( "$zversion", ref sexpr); if ( Connect.Read(ref sexpr, ref svalue) == 0) { Console.WriteLine("MiniM error: {0}", Connect.GetLastError()); return; }Or, the same in Java: // read version info String Value = Connect.Read( "$zversion"); Programmer can write own component with reqiured interface and error handling conventions. Examples in distribution only show one of possible way to use. Data Transfer Modes MiniM Server Connect implements several modes to transfer data from MiniM Database.
All data MiniM Server Connect encoded as byte sequence, true unicode is not supported. To use MiniM Server Connect in unicode applications programmer should define translation from unicode to 8-bit byte encoding for server side and back translations. See Java examples with CodePage property for example. Programmer can use any byte coding in coordination with national collation server settings. Also programmer can define his own collation tables using MiniM Collation Editor. For more information see this site topics, use search, or query additional info.
|
|
Info Support |