You are here

public function MigrateSourceMSSQL::__construct in Migrate 7.2

Same name and namespace in other branches
  1. 6.2 plugins/sources/mssql.inc \MigrateSourceMSSQL::__construct()

Simple initialization.

Overrides MigrateSource::__construct

File

plugins/sources/sqlsrv.inc, line 65
Define a MigrateSource for importing from Microsoft SQL Server databases.

Class

MigrateSourceMSSQL
Implementation of MigrateSource, to handle imports from remote MS SQL Server db servers.

Code

public function __construct(array $configuration, $query, $count_query, array $fields, array $options = array()) {
  parent::__construct($options);
  $this->query = $query;
  $this->countQuery = $count_query;
  $this->configuration = $configuration;
  $this->fields = $fields;
  $this->batchSize = isset($options['batch_size']) ? $options['batch_size'] : 500;
}