Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

using sequelize to read from a table

const { Model } = require('sequelize');

class User extends Model {}

User.init({
  // ...
}, {
  modelName: 'user',
  tableName: 'users',
  sequelize,
});
Source by sequelize.org #
 
PREVIOUS NEXT
Tagged: #sequelize #read #table
ADD COMMENT
Topic
Name
5+3 =