Page Contents
Home > @loopback/sequelize > SequelizeDataSource
SequelizeDataSource class
Sequelize DataSource Class
Signature:
export declare class SequelizeDataSource implements LifeCycleObserver
Implements: LifeCycleObserver
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
|
Constructs a new instance of the |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
|
string | |||
|
|
boolean |
Gets the flag indicating whether to parse JSON columns. If the | |
|
Sequelize | |||
|
SequelizeOptions | |||
|
{} |
Methods
| Method | Modifiers | Description |
|---|---|---|
|
Begin a new transaction. | ||
|
Execute a SQL command. **WARNING:** In general, it is always better to perform database actions through repository methods. Directly executing SQL may lead to unexpected results, corrupted data, security vulnerabilities and other issues. | ||