-
Notifications
You must be signed in to change notification settings - Fork 364
Expand file tree
/
Copy pathdatabase.js
More file actions
32 lines (26 loc) · 835 Bytes
/
Copy pathdatabase.js
File metadata and controls
32 lines (26 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
* databases.js: Openstack Trove Database within a Instance
*
* (C) 2014 Hewlett-Packard Development Company, L.P.
*
*/
var util = require('util'),
model = require('../../core/base/model');
var Database = exports.Database = function Database(client, details) {
model.Model.call(this, client, details);
};
util.inherits(Database, model.Model);
Database.prototype.refresh = function (callback) {
this.client.getDatabase(this, callback);
};
Database.prototype._setProperties = function (details) {
// @todo Check for characters that CANNOT be used in the Database Name
// @todo There is a length restrictions for database name. 64
this.name = details.name;
if (details.characterSet) {
this.characterSet = details.characterSet;
}
if (details.collation) {
this.collation = details.collation;
}
};