@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.
- package/LICENSE +22 -0
- package/Makefile +6 -0
- package/README.md +438 -0
- package/__tests__/faker.test.ts +135 -0
- package/deploy/schemas/faker/procedures/utils.sql +740 -0
- package/deploy/schemas/faker/schema.sql +8 -0
- package/deploy/schemas/faker/tables/cities/fixtures/1602987351008_fixture.sql +3700 -0
- package/deploy/schemas/faker/tables/cities/table.sql +29 -0
- package/deploy/schemas/faker/tables/dictionary/fixtures/1602969089665_fixture.sql +6036 -0
- package/deploy/schemas/faker/tables/dictionary/table.sql +17 -0
- package/jest.config.js +15 -0
- package/launchql-faker.control +8 -0
- package/launchql.plan +10 -0
- package/package.json +29 -0
- package/revert/schemas/faker/procedures/utils.sql +51 -0
- package/revert/schemas/faker/schema.sql +7 -0
- package/revert/schemas/faker/tables/cities/fixtures/1602987351008_fixture.sql +5 -0
- package/revert/schemas/faker/tables/cities/table.sql +7 -0
- package/revert/schemas/faker/tables/dictionary/fixtures/1602969089665_fixture.sql +5 -0
- package/revert/schemas/faker/tables/dictionary/table.sql +7 -0
- package/sql/launchql-faker--0.4.6.sql +10408 -0
- package/verify/schemas/faker/procedures/utils.sql +47 -0
- package/verify/schemas/faker/schema.sql +7 -0
- package/verify/schemas/faker/tables/cities/fixtures/1602987351008_fixture.sql +5 -0
- package/verify/schemas/faker/tables/cities/table.sql +7 -0
- package/verify/schemas/faker/tables/dictionary/fixtures/1602969089665_fixture.sql +5 -0
- 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;
|