{"dist":{"shasum":"e0c3cb178efee36575cefca8d3ab67cb21501050","tarball":"https://registry.npmjs.org/prisma-db-introspection/-/prisma-db-introspection-1.27.0-alpha.32.tgz","fileCount":192,"integrity":"sha512-kgRsp5N/iSNicbLpYLeaN2J8kDnGTSJDxTOicASEhNLpR6lPJ8tQ6GQ9OZszvjQ1t2CV1Bs8miCt4QswfcBEJg==","signatures":[{"sig":"MEUCIEKxDe8cQyWFZNH4aaCUva2g5yFHgnVejQ1F1i4zje1cAiEApr8lax/kTbBxH6QynU9soXmEJyM5X//bFNq0ze/fvMs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":569715,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcWvIRCRA9TVsSAnZWagAAYC0P/R3okuWS/pvzHQiE88dK\nbVzBXtANtVPMIFYjrIiOZzVaSYRj2wQOTf8g6dxCsB5dnDCbb7ygEKFo4jMD\noodC8n/NTXlhPmiEOJU2viqOu9Blc7GQUB7tMh9cA2mU3z/TfAamuL18cwKc\nZwQz1mM7xJaVin+7aCOW7VlxH6medbO+ibNfgfjGDGWnchsF05U15+wpsbgZ\nVfoKO8Z7/xQOJkOGZmiNM8qP+qucRVQU388GiqGmGQITPk2MyxnIn43DmMHo\nNddebDLad+9Cxv1nGelZLG161ryLpq23fvQp7lFke0lLPwkMr/PjE+zd/vWd\nxoVVlObhKe7kYpzHGRGVNlCGWuS5cMBcED3HSI/h00ZaakvSez3mXcp55IHb\n5WBhYspHrmUjMgnJFd6EjrPcUAm8GHPiqJD6HWv2P5xcwDu+X+a7CSI1U7xi\nL9fwTLO36gkqPQRA6eXJ0ytfSsnSmGkAhag4Twn+1+4TVe7VY0KyaouQFIBD\nrvcr9KRg6dEiSwiTTCyMAwB1OT4FCEb7gwzBZ2L5SXg8iKq+lQOHs07LCwFN\nemIagUJK7R3oOMuYE1OkusQmJWMVh1rVmqqLfxyH0L/aORihem8KbJMENJwl\n07qNjvWxDSpaXvGcqNu12pF700X3s0Bpj1aciGNY0pSGJAvorEYWdJFplodO\nNopQ\r\n=qUYD\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","/document/","/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 lint && yarn test && 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","mysql":"^2.16.0","scuid":"^1.0.2","lodash":"^4.17.4","mongodb":"^3.1.10","pluralize":"^7.0.0","prisma-yml":"1.27.0-alpha.32","@types/mysql":"^2.15.5","@types/mongodb":"^3.1.14","uppercamelcase":"^3.0.0","graphql-request":"^1.5.0","prisma-datamodel":"1.27.0-alpha.32"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"23.6.0","tslint":"^5.6.0","ts-jest":"^23.10.5","prettier":"^1.10.2","@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.27.0-alpha.32_1549464080485_0.07557392055592937","host":"s3://npm-registry-packages"},"_id":"prisma-db-introspection@1.27.0-alpha.32","version":"1.27.0-alpha.32"}