@@ -71,8 +71,8 @@ project:
71
71
``` shell
72
72
$ tt rocks install crud
73
73
```
74
-
75
- And add the [ initialization code ] ( #API ) to storage and router instance files .
74
+ * Add the [ crud initialization code ] ( #API ) to router and storage instances
75
+ initialization code for [ VShard ] ( https://github.com/tarantool/vshard ) .
76
76
* Add crud into dependencies of a Cartridge application and add crud roles into
77
77
dependencies of your roles (see [ Cartridge roles] ( #cartridge-roles ) section).
78
78
* Add crud into dependencies of your application (rockspec, RPM spec -- depends
@@ -82,12 +82,19 @@ project:
82
82
## API
83
83
84
84
The CRUD operations should be called from router.
85
- All storage replica sets should call ` crud.init_storage() `
86
- (or enable the ` crud-storage ` role)
85
+
86
+ All VShard storages should call ` crud.init_storage() ` after
87
+ ` vshard.storage.cfg() ` (or enable the ` crud-storage ` role for Cartridge)
87
88
first to initialize storage-side functions that are used to manipulate data
88
89
across the cluster.
89
- All routers should call ` crud.init_router() ` (or enable the ` crud-router ` role)
90
- to make ` crud ` functions callable via ` net.box ` .
90
+
91
+ All VShard routers should call ` crud.init_router() ` after ` vshard.router.cfg() `
92
+ (or enable the ` crud-router ` role for Cartridge) to make ` crud ` functions
93
+ callable via ` net.box ` .
94
+
95
+ You can check out an example of the configuration for local development
96
+ (a single instance that combines router and storage) in
97
+ [ playground.lua] ( ./doc/playground.lua ) .
91
98
92
99
All operations return a table that contains rows (tuples) and metadata
93
100
(space format).
0 commit comments