sqldata/sqldata.cpp
// Specify source and target database connection strings
Specify source and target database connection strings
Specify source and target database connection strings
void SqlData::SetConnectionStrings(std::string &source, std::string &target, short *s_type, short *t_type)
{
	_source_conn = source;
	_target_conn = target;
	_source_type = DefineDbType(source.c_str());
	_target_type = DefineDbType(target.c_str());
	if(s_type != NULL)
		*s_type = _source_type;
	if(t_type != NULL)
		*t_type = _target_type;
	if(_sqlParser != NULL)
	{
		short p_source = DefineSqlParserType(_source_type);
		short p_target = DefineSqlParserType(_target_type);
		SetParserTypes(_sqlParser, p_source, p_target);
	}
}
void SqlData :: SetConnectionStrings ( std :: string & source , std :: string & target , short * s_type , short * t_type ) { _source_conn = source ; _target_conn = target ; _source_type = DefineDbType ( source . c_str ( ) ) ; _target_type = DefineDbType ( target . c_str ( ) ) ; if ( s_type != NULL ) * s_type = _source_type ; if ( t_type != NULL ) * t_type = _target_type ; if ( _sqlParser != NULL ) { short p_source = DefineSqlParserType ( _source_type ) ; short p_target = DefineSqlParserType ( _target_type ) ; SetParserTypes ( _sqlParser , p_source , p_target ) ; } }
Specify source and target database connection strings
Specify source and target database connection strings
// Define the source and target types // Set SqlParser types