@pgpm/faker 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/LICENSE +22 -0
  2. package/Makefile +6 -0
  3. package/README.md +438 -0
  4. package/__tests__/faker.test.ts +135 -0
  5. package/deploy/schemas/faker/procedures/utils.sql +740 -0
  6. package/deploy/schemas/faker/schema.sql +8 -0
  7. package/deploy/schemas/faker/tables/cities/fixtures/1602987351008_fixture.sql +3700 -0
  8. package/deploy/schemas/faker/tables/cities/table.sql +29 -0
  9. package/deploy/schemas/faker/tables/dictionary/fixtures/1602969089665_fixture.sql +6036 -0
  10. package/deploy/schemas/faker/tables/dictionary/table.sql +17 -0
  11. package/jest.config.js +15 -0
  12. package/launchql-faker.control +8 -0
  13. package/launchql.plan +10 -0
  14. package/package.json +29 -0
  15. package/revert/schemas/faker/procedures/utils.sql +51 -0
  16. package/revert/schemas/faker/schema.sql +7 -0
  17. package/revert/schemas/faker/tables/cities/fixtures/1602987351008_fixture.sql +5 -0
  18. package/revert/schemas/faker/tables/cities/table.sql +7 -0
  19. package/revert/schemas/faker/tables/dictionary/fixtures/1602969089665_fixture.sql +5 -0
  20. package/revert/schemas/faker/tables/dictionary/table.sql +7 -0
  21. package/sql/launchql-faker--0.4.6.sql +10408 -0
  22. package/verify/schemas/faker/procedures/utils.sql +47 -0
  23. package/verify/schemas/faker/schema.sql +7 -0
  24. package/verify/schemas/faker/tables/cities/fixtures/1602987351008_fixture.sql +5 -0
  25. package/verify/schemas/faker/tables/cities/table.sql +7 -0
  26. package/verify/schemas/faker/tables/dictionary/fixtures/1602969089665_fixture.sql +5 -0
  27. package/verify/schemas/faker/tables/dictionary/table.sql +7 -0
@@ -0,0 +1,47 @@
1
+ -- Verify schemas/faker/procedures/utils on pg
2
+
3
+ BEGIN;
4
+
5
+ SELECT verify_function ('faker.word_type');
6
+ SELECT verify_function ('faker.word');
7
+ SELECT verify_function ('faker.gender');
8
+ SELECT verify_function ('faker.username');
9
+ SELECT verify_function ('faker.name');
10
+ SELECT verify_function ('faker.surname');
11
+ SELECT verify_function ('faker.fullname');
12
+ SELECT verify_function ('faker.business');
13
+ SELECT verify_function ('faker.city');
14
+ SELECT verify_function ('faker.zip');
15
+ SELECT verify_function ('faker.lnglat');
16
+ SELECT verify_function ('faker.phone');
17
+ SELECT verify_function ('faker.street');
18
+ SELECT verify_function ('faker.state');
19
+ SELECT verify_function ('faker.address');
20
+ SELECT verify_function ('faker.tags');
21
+ SELECT verify_function ('faker.sentence');
22
+ SELECT verify_function ('faker.paragraph');
23
+ SELECT verify_function ('faker.email');
24
+ SELECT verify_function ('faker.uuid');
25
+ SELECT verify_function ('faker.token');
26
+ SELECT verify_function ('faker.password');
27
+ SELECT verify_function ('faker.hostname');
28
+ SELECT verify_function ('faker.time_unit');
29
+ SELECT verify_function ('faker.float');
30
+ SELECT verify_function ('faker.integer');
31
+ SELECT verify_function ('faker.date');
32
+ SELECT verify_function ('faker.birthdate');
33
+ SELECT verify_function ('faker.interval');
34
+ SELECT verify_function ('faker.boolean');
35
+ SELECT verify_function ('faker.timestamptz');
36
+ SELECT verify_function ('faker.mime');
37
+ SELECT verify_function ('faker.ext');
38
+ SELECT verify_function ('faker.image_mime');
39
+ SELECT verify_function ('faker.image');
40
+ SELECT verify_function ('faker.profilepic');
41
+ SELECT verify_function ('faker.file');
42
+ SELECT verify_function ('faker.url');
43
+ SELECT verify_function ('faker.upload');
44
+ SELECT verify_function ('faker.ip');
45
+ SELECT verify_function ('faker.attachment');
46
+
47
+ ROLLBACK;
@@ -0,0 +1,7 @@
1
+ -- Verify schemas/faker/schema on pg
2
+
3
+ BEGIN;
4
+
5
+ SELECT verify_schema ('faker');
6
+
7
+ ROLLBACK;
@@ -0,0 +1,5 @@
1
+ -- Verify schemas/faker/tables/cities/fixtures/1602987351008_fixture on pg
2
+
3
+ BEGIN;
4
+
5
+ ROLLBACK;
@@ -0,0 +1,7 @@
1
+ -- Verify schemas/faker/tables/cities/table on pg
2
+
3
+ BEGIN;
4
+
5
+ SELECT verify_table ('faker.cities');
6
+
7
+ ROLLBACK;
@@ -0,0 +1,5 @@
1
+ -- Verify schemas/faker/tables/dictionary/fixtures/1602969089665_fixture on pg
2
+
3
+ BEGIN;
4
+
5
+ ROLLBACK;
@@ -0,0 +1,7 @@
1
+ -- Verify schemas/faker/tables/dictionary/table on pg
2
+
3
+ BEGIN;
4
+
5
+ SELECT verify_table ('faker.dictionary');
6
+
7
+ ROLLBACK;