1
- # cosFaker [ ![ GitHub issues] ( https://img.shields.io/github/issues/henryhamon/cosfaker.svg )] ( https://github.com/henryhamon/cosfaker/issues ) [ ![ GitHub license] ( https://img.shields.io/badge/license-MIT-blue.svg )] ( https://raw.githubusercontent.com/henryhamon/cosfaker/master/LICENSE )
1
+ # cosFaker [ ![ GitHub issues] ( https://img.shields.io/github/issues/henryhamon/cosfaker.svg )] ( https://github.com/henryhamon/cosfaker/issues ) [ ![ GitHub license] ( https://img.shields.io/badge/license-MIT-blue.svg )] ( https://raw.githubusercontent.com/henryhamon/cosfaker/master/LICENSE )
2
2
Generate massive amounts of fake data for Intersystems Caché
3
3
4
4
The language of data is according to configuration of your Caché (Now works with Pt-Br and En-Us(Default)).
@@ -25,6 +25,16 @@ The language of data is according to configuration of your Caché (Now works wit
25
25
* StarWars (Character, Droid, Planet, Quote, Specie, Vehicle, Wookie word, Wookie Sentence)
26
26
* UFC (Category, Fighter, Fighter by category, Nickname)
27
27
28
+ ## Instalation
29
+
30
+ To install cosFaker, you just need to import the package cosFaker.vX.X.X.xml file.
31
+ You can go to Management Portal -> System Explorer -> Classes -> Import and select the XML file or just drag the file over Studio.
32
+ Also, if you like terminal like me, execute:
33
+
34
+ ```
35
+ Do $system.OBJ.Load("yourpath/cosFaker.vX.X.X.xml","ck")
36
+ ```
37
+
28
38
29
39
## Usage
30
40
@@ -73,7 +83,7 @@ Write ##class(cosFaker.JSON).GetDataJSONFromJSON("{Nome:'name 2',Cidade:'city SC
73
83
74
84
``` cos
75
85
//Suppose you want a person with name, street, phone and his 3 preferred Pokemons
76
- Write ##class(cosFaker.JSON).GetDataJSONFromJSON("{person:['name','street','phone','3 pokemon']}")
86
+ Write ##class(cosFaker.JSON).GetDataJSONFromJSON("{person:['name','street','phone','3 pokemon']}")
77
87
// {"person":
78
88
// [
79
89
// "Yango Nogueira",
@@ -91,7 +101,7 @@ Set person = ##class(cosFaker.JSON).GetDataOBJFromJSON("{name:'name 2',birth:'da
91
101
Write person.name
92
102
// Flávio Silveira
93
103
94
- Set listOfPokemons = person.pokemons
104
+ Set listOfPokemons = person.pokemons
95
105
Write listOfPokemons.GetAt(1)
96
106
// Diancie
97
107
0 commit comments