{"dist":{"shasum":"cba56d6389f0842446885c296841d357798e6dc7","tarball":"https://registry.npmjs.org/prisma-db-introspection/-/prisma-db-introspection-1.29.0-alpha.1.tgz","fileCount":204,"integrity":"sha512-8omX+LnO0axuOef2fqGvc1Z/XGOnv7Dbp3p+c9zRN8WTIC6SKrG3sas1qErPz7AsNR/Nb0k5TGR4rCR2toO8BA==","signatures":[{"sig":"MEYCIQCzmGsJ0Ug3lpWrsgBIqLnet3+DnZO2zNvyDh7yPhi6LAIhALfHDrNCKZhEgbIRrkCYL7OYw+FPnqZvK+1OhEL3vG5v","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1167434,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJccGtQCRA9TVsSAnZWagAAJtoQAIc8P4jIwwLITr9XDbbQ\n7iPV6JWNzIFiCjIGTcAr7CB0uayTa7pYhls4bBZ2ea1H21hQjZnb1j8PLhTR\nX/25/bHV8JUmULfE6Xfoa99uSLrvhVRk4ooLYGcDcVQNOGBbXPASCiCZkzqu\nz01oXx8yR7NeY7L/lWeMklB1H6jcL02y/pTRlRMnffomkFmfKPnNnaf5ORl4\natUxfubXEgqYsZ+WYAHn4l6tgbbJwp1jJaGJb26rvocZ4xrOM+VsGmyXkvtN\nMHv8lNc1VFaOTObZxLd67fV/SkF6urhn64VCFMSgbkCYMtlSkbnNbQvxNwBX\nv3gUrIN17DZD6563JvKQl2MQ+g4BLZ104xLXmhHShrxAAO3r41rsfykFDW2N\nr5eYFrpex8h1gfOt78QQ2D725pRzwuF9AQEJ4CRQ6cHPkiZ2+XKGc3Py/Mji\n//ENtfFtOAONryghMnByXcyxA0dmZmKQGlTbRWX/LV/lItmxd7ZayAhcGINB\n6lqIQ4ZwRSk3DFDOzPkr8kr4uBFtinRj4IBZ20+GnFPpI+vauHPJ5wm3wF1r\nbwh8KClSUm3HMur8WEZRd2sDBvxilMvwLYpGyvbqdaUDD3SJzryXeauicS1N\nQvtVtBkUoFxN3ualYXGORxakHDqnf/+ZaW7SMGG1NcyGDwFIghBwk1V02Fxx\nRZGz\r\n=xj/q\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testRegex":"(src/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","transform":{"^.+\\.tsx?$":"ts-jest"},"moduleFileExtensions":["ts","tsx","js","jsx","json","node"],"testPathIgnorePatterns":["/node_modules/","helpers.ts","connectionDetails.ts","common.ts","/data/","dist"]},"main":"dist/index.js","name":"prisma-db-introspection","types":"dist/index.d.ts","readme":"## Shorthand\n\n```\nconst renderedSdl = await connector.introspect(schema).renderToDatamodelString()\n```\n\n## Creating a connector\n\n```\nconst connector = Connectors.create(DatabaseType.mysql, client)\nconst connector = Connectors.create(DatabaseType.postgres, client)\nconst connector = Connectors.create(DatabaseType.mongo, client)\n```\n\nThe database client has to be connected and disconnected by the caller. \n\n## Introspecting\n\nIntrospect the database:\n```\nconst introspection = await connector.introspect(schema)\n```\n\nThen, create an ISDL structure from the introspection:\n\n```\nconst sdl: ISDL = await introspection.getDatamodel()\n```\n\nor with an existing reference model:\n```\nconst sdl: ISDL = await introspection.getNormalizedDatamodel(referenceModel)\n```\n\n## Rendering introspection results\n\nWith prototype features enabled (V2)\n\n```\nconst renderer = Renderers.create(introspection.databaseType, prototype)\nconst renderedSdl = renderer.render(sdl)\n```\n\nWithout prototype featurs, simply use the shorthand:\n```\nconst renderedSdl = introspection.renderToDatamodelString()\n```\nor with an existing reference model:\n```\nconst renderedSdl = introspection.renderToNormalizedDatamodelString(referenceModel)\n```","license":"Apache-2.0","scripts":{"lint":"tslint src/**/*.ts","test":"jest --runInBand --verbose=false","build":"tsc -d","precommit":"lint-staged","prepublishOnly":"yarn build"},"_npmUser":{"name":"timsuchanek","email":"tim.suchanek@gmail.com"},"repository":{"url":"https://github.com/graphcool/graphcool/tree/prisma-cli/cli/packages/prisma-db-introspection"},"_npmVersion":"6.4.1","description":"``` const renderedSdl = await connector.introspect(schema).renderToDatamodelString() ```","directories":{},"maintainers":[{"name":"timsuchanek","email":"tim.suchanek@gmail.com"}],"_nodeVersion":"8.15.0","dependencies":{"pg":"^7.4.1","scuid":"^1.0.2","lodash":"^4.17.4","mysql2":"^1.6.5","mongodb":"^3.1.10","pluralize":"^7.0.0","prisma-yml":"1.29.0-alpha.1","@types/mysql":"^2.15.5","@types/mongodb":"^3.1.14","uppercamelcase":"^3.0.0","graphql-request":"^1.5.0","prisma-datamodel":"1.29.0-alpha.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"23.6.0","tslint":"^5.6.0","ts-jest":"^23.10.5","prettier":"1.14.3","@types/pg":"^7.4.6","typescript":"^3.2.2","@types/jest":"^23.3.9","@types/node":"^8.0.57","@types/fs-extra":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/prisma-db-introspection_1.29.0-alpha.1_1550871375569_0.003748327888238867","host":"s3://npm-registry-packages"},"_id":"prisma-db-introspection@1.29.0-alpha.1","version":"1.29.0-alpha.1"}