class DatabaseConnector (View source)

Connects to the SilverStripe Database object of a given SilverStripe project, in order to bulk save/load data

Methods

public
__construct($basePath)

No description

public
connect()

No description

public
getDatabase()

No description

public
getTables()

Get a list of tables from the database

public
getFieldsForTable($tableName)

Get a list of tables from the database

public
saveTable($tableName, TableWriter $writer)

Save the named table to the given table write

public
loadTable($tableName, TableReader $reader)

Save the named table to the given table write

Details

__construct($basePath)

No description

Parameters

$basePath

connect()

No description

getDatabase()

No description

getTables()

Get a list of tables from the database

getFieldsForTable($tableName)

Get a list of tables from the database

Parameters

$tableName

saveTable($tableName, TableWriter $writer)

Save the named table to the given table write

Parameters

$tableName
TableWriter $writer

loadTable($tableName, TableReader $reader)

Save the named table to the given table write

Parameters

$tableName
TableReader $reader