N_5: IMYSQL_FIELD { ///
/// Name of column /// public string name; ///
/// Original column name, if an alias /// public string org_name; ///
/// Table of column if column was a field /// public string table; ///
/// Org table name if table was an alias /// public string org_table; ///
/// Database for table /// public string db; ///
/// Catalog for table /// //public string catalog; ///
/// def /// public string def; ///
/// length /// public long length; ///
/// max_length /// public long max_length;
///
/// name_length /// //public uint name_length; ///
/// org_name_length /// public uint org_name_length; ///
/// table_length /// public uint table_length; ///
/// org_table_length /// public uint org_table_length; ///
/// db_length /// public uint db_length; ///
/// catalog_length /// public uint catalog_length; ///
/// def_length /// public uint def_length; ///
/// Div flags /// public uint flags; ///
/// Number of decimals in field /// public uint decimals; ///
/// Character set /// public uint charsetnr; ///
/// Type of field. Se mysql_com.h for types /// public uint type;
///
/// Name /// public string Name { get {return name;} } ///
/// Type /// public uint Type { get {return type;} } ///
/// Max_Length /// public long Max_Length { get {return max_length;} } } //[StructLayout(LayoutKind.Explicit)] public enum enum_field_types { FIELD_TYPE_DECIMAL, FIELD_TYPE_TINY, FIELD_TYPE_SHORT, FIELD_TYPE_LONG, FIELD_TYPE_FLOAT, FIELD_TYPE_DOUBLE, FIELD_TYPE_NULL, FIELD_TYPE_DATE, FIELD_TYPE_TIMESTAMP, FIELD_TYPE_TIME, FIELD_TYPE_LONGLONG,FIELD_TYPE_INT24, FIELD_TYPE_DATET
IME, FIELD_TYPE_YEAR, FIELD_TYPE_NEWDATE, FIELD_TYPE_ENUM=247, FIELD_TYPE_SET=248, FIELD_TYPE_TINY_BLOB=249, FIELD_TYPE_MEDIUM_BLOB=250, FIELD_TYPE_LONG_BLOB=251, FIELD_TYPE_BLOB=252, FIELD_TYPE_VAR_STRING=253, FIELD_TYPE_STRING=254, FIELD_TYPE_GEOMETRY=255
}; ///
/// C prototypes warpper for mysqllib. /// internal class CPrototypes { [ DllImport( "libmySQL.dll", EntryPoint="mysql_init" )] unsafe public static extern void* mysql_init(void* must_be_null); [ DllImport( "libmySQL.dll", EntryPoint="mysql_close" )] unsafe public static extern void mysql_close(void* handle); // BEGIN ADDITION 2004-07-01 BY Alex Seewald // Enables us to call mysql_option to activate compression and timeout [ DllImport( "libmySQL.dll", EntryPoint="mysql_options" )] unsafe public static extern void my
sql_options(void*
mysql, uint option, uint *value); // END ADDITION 2004-07-01 By Alex Seewald
[ DllImport( "libmySQL.dll", EntryPoint="mysql_real_connect" )] unsafe public static extern void* mysql_real_connect(void* mysql, string host, string user, string passwd, string db, uint port, string unix_socket, int client_flag); [ DllImport( "libmySQL.dll", EntryPoint="mysql_query" )] unsafe public static extern int mysql_query(void*mysql, string query); [ DllImport( "libmySQL.dll", EntryPoint="mysql_store_result" )] unsafe public static extern void *mysql_store_result(void *mysql); [ DllImport( "libmySQL.dll", EntryPoint="mysql_fre