@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,29 @@
1
+ -- Deploy schemas/faker/tables/cities/table to pg
2
+
3
+ -- requires: schemas/faker/schema
4
+
5
+ BEGIN;
6
+
7
+ CREATE TABLE faker.cities (
8
+ id uuid PRIMARY KEY DEFAULT uuid_generate_v4 (),
9
+ city text,
10
+ state text,
11
+ zips int[],
12
+ lat float,
13
+ lng float
14
+ );
15
+
16
+
17
+ CREATE INDEX faker_city_idx1 ON faker.cities (
18
+ city
19
+ );
20
+
21
+ CREATE INDEX faker_city_idx2 ON faker.cities (
22
+ state
23
+ );
24
+
25
+ CREATE INDEX faker_city_idx3 ON faker.cities USING GIN (
26
+ zips
27
+ );
28
+
29
+ COMMIT;