Skip to content

Instantly share code, notes, and snippets.

@sam-thecoder
Created July 3, 2018 07:50
Show Gist options
  • Save sam-thecoder/6a9e5a3ad7fea78b3de6dc956a9aa56a to your computer and use it in GitHub Desktop.
Save sam-thecoder/6a9e5a3ad7fea78b3de6dc956a9aa56a to your computer and use it in GitHub Desktop.
node error
$ node
> const models = require('./../models');
sequelize deprecated String based operators are now deprecated. Please use Symbo
l based operators for better security, read more at http://docs.sequelizejs.com/
manual/tutorial/querying.html#operators node_modules\sequelize\lib\sequelize.js:
242:13
undefined
> Executing (default): CREATE TABLE IF NOT EXISTS `users` (`id` INTEGER PRIMARY
KEY AUTOINCREMENT, `username` VARCHAR(255), `loggedIn` TINYINT(1), `createdAt` D
ATETIME NOT NULL, `updatedAt` DATETIME NOT NULL);
Executing (default): PRAGMA INDEX_LIST(`users`)
Executing (default): CREATE TABLE IF NOT EXISTS `messages` (`id` INTEGER PRIMARY
KEY AUTOINCREMENT, `public` TINYINT(1), `to` VARCHAR(255), `messsage` TINYINT(1
), `createdBy` VARCHAR(255), `createdAt` DATETIME, `updatedAt` DATETIME NOT NULL
);
Executing (default): PRAGMA INDEX_LIST(`messages`)
> console.log(models);
Sequelize {
options:
{ dialect: 'sqlite',
...
storage: './db.sqlite' },
config:
{ database: undefined,
username: undefined,
password: null,
host: 'localhost',
port: undefined,
pool: {},
protocol: 'tcp',
native: false,
ssl: undefined,
replication: false,
dialectModulePath: null,
keepDefaultTimezone: undefined,
dialectOptions: undefined },
dialect:
SqliteDialect {
sequelize: [Circular],
connectionManager:
ConnectionManager {
sequelize: [Circular],
...
lib: [Object] },
QueryGenerator:
{ options: [Object],
dialect: 'sqlite',
...
sequelize: [Circular],
typeValidation: undefined } },
queryInterface:
QueryInterface {
sequelize: [Circular],
QueryGenerator:
{ options: [Object],
dialect: 'sqlite',
...
_dialect: [Object],
sequelize: [Circular],
typeValidation: undefined } },
models: { user: user, messages: messages },
modelManager: ModelManager { models: [ user, messages ], sequelize: [Circular] },
connectionManager:
ConnectionManager {
sequelize: [Circular],
config:
{ database: undefined,
username: undefined,
password: null,
host: 'localhost',
port: undefined,
pool: {},
protocol: 'tcp',
native: false,
ssl: undefined,
replication: false,
dialectModulePath: null,
keepDefaultTimezone: undefined,
dialectOptions: undefined },
dialect:
SqliteDialect {
sequelize: [Circular],
connectionManager: [Circular],
QueryGenerator: [Object] },
versionPromise: null,
dialectName: 'sqlite',
pool:
Pool {
domain: [Object],
...
_scheduledEviction: null },
connections: { default: [Object] },
lib:
{ Database: [Function: Database],
Statement: [Function: Statement],
...
verbose: [Function] } },
importCache: {},
test:
{ _trackRunningQueries: false,
_runningQueries: 0,
trackRunningQueries: [Function: trackRunningQueries],
verifyNoRunningQueries: [Function: verifyNoRunningQueries] } }
undefined
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment