{"dist":{"shasum":"5c1397dddf6559ec5c79ed1e7f9f2a362ccee3e8","tarball":"https://registry.npmjs.org/prisma-db-introspection/-/prisma-db-introspection-1.28.0-alpha.11.tgz","fileCount":201,"integrity":"sha512-5KnVyv2aSPuMbpUEy1jGAriWGO+zBNCF0cTjqxuy+UUU7aAKbjwp/DPLUmahfNNgtxAw8yUJalsXGnQxryXeCQ==","signatures":[{"sig":"MEQCIAu92oFP8X8/VgzUh4Mb439M/sk92LNjsDJvzOpjPmp0AiA+xZmiHuLMwGvFcA4DOMPfC81lECNw6WNPZQ0be5YM+w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1088173,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcbZWXCRA9TVsSAnZWagAAzv0P/2mVWl5wj00IOO2kFge7\ntMzCk7xjuE2f2rbuddvWn/ZQuZiPqmPauL9QJ7g53Vo3DlUQA33bRSDqkoKb\ngi+GmP9iXsCHAeXdY1e4dXqg5qMD2nNmqaXTg3Nm1pcIhDAcm+bRtI0eTRdD\neZlBstQx9hHjfAza5bASm6Z9n/YX9kj6BvAXeh6myCs/kYa/s5oygv0nU5xJ\n65WFA6MIFtmO3xo5jkZB9Ty9CT/zzo6cPNfk9rH8IbCDgfo46A16LydL/l5M\nOmSZWk5k0LgKX3nHY2wK/D3ZpxTZhAMXQbsYidae1wqiVO81ac6qzS2cR8sg\n4Wb10XXh/K3ycUu/Iv1nfCUDdkzyi2pxJ0utl5zjAOaCdKTAl0H2t/l4tck+\nhEOw9SNnN3OIZvRj7LO6xuyDzZHEsOPII7LEvewwNRTpjoA+7ZIVve+O162t\nN5N0AWMjNbW6R0Ctyn3jAB2LShBPmqHO8Ry5aC1AAB8IJgmYV6Fwn0mVWIYy\n9ahNMEgI0zStpg7RjW/mZI2eMqu7qLCfZ8YFCB1eRHxtC8oMGSmlG7yWBqH6\nPMobvMxHav1TDs4r+woU+jdmEm8+wtk4FWuLLFAmAkKXACjFtcyEkrhyRCj8\nKpOxgjFdrItrHdM7C/MlZFuBk9V07BMCPdA1432UYpy/aA1N9KjNIbCpJr5q\nGDAd\r\n=d5iN\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.28.0-alpha.11","@types/mysql":"^2.15.5","@types/mongodb":"^3.1.14","uppercamelcase":"^3.0.0","graphql-request":"^1.5.0","prisma-datamodel":"1.28.0-alpha.11"},"_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.28.0-alpha.11_1550685591065_0.783902448951554","host":"s3://npm-registry-packages"},"_id":"prisma-db-introspection@1.28.0-alpha.11","version":"1.28.0-alpha.11"}