8 lines
69 KiB
Plaintext
8 lines
69 KiB
Plaintext
|
{
|
||
|
"version": 3,
|
||
|
"sources": ["../src/sequelize.js"],
|
||
|
"sourcesContent": ["'use strict';\n\nconst url = require('url');\nconst path = require('path');\nconst pgConnectionString = require('pg-connection-string');\nconst retry = require('retry-as-promised');\nconst _ = require('lodash');\n\nconst Utils = require('./utils');\nconst Model = require('./model');\nconst DataTypes = require('./data-types');\nconst Deferrable = require('./deferrable');\nconst ModelManager = require('./model-manager');\nconst Transaction = require('./transaction');\nconst QueryTypes = require('./query-types');\nconst TableHints = require('./table-hints');\nconst IndexHints = require('./index-hints');\nconst sequelizeErrors = require('./errors');\nconst Hooks = require('./hooks');\nconst Association = require('./associations/index');\nconst Validator = require('./utils/validator-extras').validator;\nconst Op = require('./operators');\nconst deprecations = require('./utils/deprecations');\nconst { QueryInterface } = require('./dialects/abstract/query-interface');\nconst { BelongsTo } = require('./associations/belongs-to');\nconst HasOne = require('./associations/has-one');\nconst { BelongsToMany } = require('./associations/belongs-to-many');\nconst { HasMany } = require('./associations/has-many');\nconst { withSqliteForeignKeysOff } = require('./dialects/sqlite/sqlite-utils');\nconst { injectReplacements } = require('./utils/sql');\n\n/**\n * This is the main class, the entry point to sequelize.\n */\nclass Sequelize {\n /**\n * Instantiate sequelize with name of database, username and password.\n *\n * @example\n * // without password / with blank password\n * const sequelize = new Sequelize('database', 'username', null, {\n * dialect: 'mysql'\n * })\n *\n * // with password and options\n * const sequelize = new Sequelize('my_database', 'john', 'doe', {\n * dialect: 'postgres'\n * })\n *\n * // with database, username, and password in the options object\n * const sequelize = new Sequelize({ database, username, password, dialect: 'mssql' });\n *\n * // with uri\n * const sequelize = new Sequelize('mysql://localhost:3306/database', {})\n *\n * // option examples\n * const sequelize = new Sequelize('database', 'username', 'password', {\n * // the sql dialect of the database\n * // currently supported: 'mysql', 'sqlite', 'postgres', 'mssql'\n * dialect: 'mysql',\n *\n * // custom host; default: localhost\n * host: 'my.server.tld',\n * // for postgres, you can also specify an absolute path to a directory\n * // containing a UNIX socket to connect over\n * // host: '/sockets/psql_sockets'.\n *\n * // custom port; default: dialect default\n * port: 12345,\n *\n * // custom protocol; default: 'tcp'\n * // postgres only, useful for Heroku\n * protocol: null,\n *\n * // disable logging or provide a custom logging function; default: console.log\n * logging: false,\n *\n * // you can also pass any dialect options to the underlying dialect library\n * // - default is empty\n * // - currently supported: 'mysql', 'postgres', 'mssql'\n * dialectOptions: {\n * socketPath: '/Applications/MAMP/tmp/mysql/mysql.sock',\n * supportBigNumbers: true,\n * bigNumberStrings: true\n * },\n *\n * // the storage engine for sqlite\n * // - default ':memory:'\n * storage: 'path/to/database.sqlite',\n *\n * // disable inserting undefined values as NULL\n * // - default: false\n * omitNull: true,\n *\n * // a flag for using a native library or not.\n * // in the case of 'pg' -- set this to true will allow SSL support\n * // - default: false\n * native: true,\n *\n * // Specify options, which are used when sequelize.define is called.\n * // The following example:\n * // define: { timestamps: false }\n * // is basically the same as:\n * // Model.init(attributes, { timestamps: false });\n * // sequelize.define(name, attributes, { timestamps: false });\n * // so defining the timestamps for each model will
|
||
|
"mappings": ";;;;;;;;;;;;;;;;;;;;AAEA,MAAM,MAAM,QAAQ;AACpB,MAAM,OAAO,QAAQ;AACrB,MAAM,qBAAqB,QAAQ;AACnC,MAAM,QAAQ,QAAQ;AACtB,MAAM,IAAI,QAAQ;AAElB,MAAM,QAAQ,QAAQ;AACtB,MAAM,QAAQ,QAAQ;AACtB,MAAM,YAAY,QAAQ;AAC1B,MAAM,aAAa,QAAQ;AAC3B,MAAM,eAAe,QAAQ;AAC7B,MAAM,cAAc,QAAQ;AAC5B,MAAM,aAAa,QAAQ;AAC3B,MAAM,aAAa,QAAQ;AAC3B,MAAM,aAAa,QAAQ;AAC3B,MAAM,kBAAkB,QAAQ;AAChC,MAAM,QAAQ,QAAQ;AACtB,MAAM,cAAc,QAAQ;AAC5B,MAAM,YAAY,QAAQ,4BAA4B;AACtD,MAAM,KAAK,QAAQ;AACnB,MAAM,e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