Initial import, work in progress restbuck example. Only support create
a resource
This commit is contained in:
21
examples/restbucks/src/database/database_api.e
Normal file
21
examples/restbucks/src/database/database_api.e
Normal file
@@ -0,0 +1,21 @@
|
||||
note
|
||||
description: "Summary description for {DATABASE_API}."
|
||||
author: ""
|
||||
date: "$Date$"
|
||||
revision: "$Revision$"
|
||||
|
||||
class
|
||||
DATABASE_API
|
||||
create
|
||||
make
|
||||
|
||||
feature --Initialization
|
||||
make
|
||||
do
|
||||
create orders.make (10)
|
||||
end
|
||||
|
||||
feature -- Access
|
||||
orders : HASH_TABLE[ORDER,STRING]
|
||||
|
||||
end
|
||||
14
examples/restbucks/src/database/shared_database_api.e
Normal file
14
examples/restbucks/src/database/shared_database_api.e
Normal file
@@ -0,0 +1,14 @@
|
||||
note
|
||||
description: "Summary description for {SHARED_DATABASE_API}."
|
||||
author: ""
|
||||
date: "$Date$"
|
||||
revision: "$Revision$"
|
||||
|
||||
class
|
||||
SHARED_DATABASE_API
|
||||
feature
|
||||
db_access: DATABASE_API
|
||||
once
|
||||
create Result.make
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user