Skip to content

Feature complete C# wrapper for the original C/C++ CubeSQL database driver.

License

Notifications You must be signed in to change notification settings

andreaspfeil/CubeSQL.NET

Repository files navigation

CubeSQL.NET

Feature complete C# wrapper to Marco Bambinis nativ cubeSQL C SDK.

Usage example

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();
      }
    }
  }
}

Installation

Documentation

Video Tutorials

Donate

Contributors

  • Marco Bambini (Author of cubeSQL and the original nativ client SDK)

Acknowledgments

See also

License

BEER license / MIT license

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.

Sponsors

none yet - YOU can still be number one in this list!!!

About

Feature complete C# wrapper for the original C/C++ CubeSQL database driver.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages