Feature complete C# wrapper to Marco Bambinis nativ cubeSQL C SDK.
namespace CubeSQLTestApp {
using CubeSQL;
class CubeSQLTestApp {
static void Main( string[] args ) {
CubeSQL c = new CubeSQL( "localhost", "loginname", "password" );
Console.WriteLine( "Version = " + c.version() );
c.use( "demo" );
CubeSQLResult result = c.select( "SELECT * FROM Feedback" );
Console.WriteLine( "ErrorCode = " + c.getErrorCode() );
Console.WriteLine( "ErrorMessage = " + c.getErrorMessage() );
Console.WriteLine( "Rows = " + result.getNumRows() );
Console.WriteLine( "Columns = " + result.getNumCols() );
Console.WriteLine( "Current Row = " + result.getCurrentRow() );
while( result.hasMoreRows() ) {
for( int I = result.getNumCols(), i = 1; i <= I; i++ ) {
Console.Write( "Column " + i + " (" + result.getColumnName( i ) + "): " );
Console.WriteLine( result.getStringValue( i ) );
}
result.next();
}
}
}
}- Marco Bambini (Author of cubeSQL and the original nativ client SDK)
The BEER license is basically the same as the MIT license (see link), except that you should buy the author a beer (see Donate) if you use this software.
none yet - YOU can still be number one in this list!!!