Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/storage/lisk/LiskDAO.php
Show First 20 Lines • Show All 165 Lines • ▼ Show 20 Lines | abstract class LiskDAO { | ||||
const CONFIG_IDS = 'id-mechanism'; | const CONFIG_IDS = 'id-mechanism'; | ||||
const CONFIG_TIMESTAMPS = 'timestamps'; | const CONFIG_TIMESTAMPS = 'timestamps'; | ||||
const CONFIG_AUX_PHID = 'auxiliary-phid'; | const CONFIG_AUX_PHID = 'auxiliary-phid'; | ||||
const CONFIG_SERIALIZATION = 'col-serialization'; | const CONFIG_SERIALIZATION = 'col-serialization'; | ||||
const CONFIG_BINARY = 'binary'; | const CONFIG_BINARY = 'binary'; | ||||
const CONFIG_COLUMN_SCHEMA = 'col-schema'; | const CONFIG_COLUMN_SCHEMA = 'col-schema'; | ||||
const CONFIG_KEY_SCHEMA = 'key-schema'; | const CONFIG_KEY_SCHEMA = 'key-schema'; | ||||
const CONFIG_NO_TABLE = 'no-table'; | |||||
const SERIALIZATION_NONE = 'id'; | const SERIALIZATION_NONE = 'id'; | ||||
const SERIALIZATION_JSON = 'json'; | const SERIALIZATION_JSON = 'json'; | ||||
const SERIALIZATION_PHP = 'php'; | const SERIALIZATION_PHP = 'php'; | ||||
const IDS_AUTOINCREMENT = 'ids-auto'; | const IDS_AUTOINCREMENT = 'ids-auto'; | ||||
const IDS_COUNTER = 'ids-counter'; | const IDS_COUNTER = 'ids-counter'; | ||||
const IDS_MANUAL = 'ids-manual'; | const IDS_MANUAL = 'ids-manual'; | ||||
▲ Show 20 Lines • Show All 164 Lines • ▼ Show 20 Lines | /* -( Configuring Lisk )--------------------------------------------------- */ | ||||
* handling binary writes. | * handling binary writes. | ||||
* | * | ||||
* CONFIG_COLUMN_SCHEMA | * CONFIG_COLUMN_SCHEMA | ||||
* Provide a map of columns to schema column types. | * Provide a map of columns to schema column types. | ||||
* | * | ||||
* CONFIG_KEY_SCHEMA | * CONFIG_KEY_SCHEMA | ||||
* Provide a map of key names to key specifications. | * Provide a map of key names to key specifications. | ||||
* | * | ||||
* CONFIG_NO_TABLE | |||||
* Allows you to specify that this object does not actually have a table in | |||||
* the database. | |||||
* | |||||
* @return dictionary Map of configuration options to values. | * @return dictionary Map of configuration options to values. | ||||
* | * | ||||
* @task config | * @task config | ||||
*/ | */ | ||||
protected function getConfiguration() { | protected function getConfiguration() { | ||||
return array( | return array( | ||||
self::CONFIG_IDS => self::IDS_AUTOINCREMENT, | self::CONFIG_IDS => self::IDS_AUTOINCREMENT, | ||||
self::CONFIG_TIMESTAMPS => true, | self::CONFIG_TIMESTAMPS => true, | ||||
▲ Show 20 Lines • Show All 1,467 Lines • Show Last 20 Lines |