Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F12656703
datastore.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
788 B
Referenced Files
None
Subscribers
None
datastore.js
View Options
var
Chip
=
require
(
"./chip.js"
);
var
Datastore
=
function
(
parent_module_path
,
name
){
this
.
name
=
name
;
this
.
longid
=
"datastore."
+
name
;
this
.
default_configuration
=
{};
Sealious
.
ChipManager
.
add_chip
(
"datastore"
,
this
.
name
,
this
,
parent_module_path
);
}
Datastore
.
is_a_constructor
=
false
;
Datastore
.
prototype
=
new
Chip
();
Datastore
.
prototype
.
return_not_implemented
=
function
(
fn_name
){
return
function
(){
throw
new
Sealious
.
Errors
.
DeveloperError
(
"Function "
,
fn_name
,
"not implemented in "
,
this
.
longid
,
", aborting."
);
}
}
var
needs_to_implement
=
[
"find"
,
"insert"
,
"update"
,
"remove"
]
for
(
var
i
in
needs_to_implement
){
var
fn_name
=
needs_to_implement
[
i
];
Datastore
.
prototype
[
fn_name
]
=
Datastore
.
prototype
.
return_not_implemented
(
fn_name
)
}
module
.
exports
=
Datastore
;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 28, 15:13 (16 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1056340
Default Alt Text
datastore.js (788 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment