How to use webiny-sql-table-mysql - 1 common examples

To help you get started, we’ve selected a few webiny-sql-table-mysql examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github webiny / webiny-js / packages / webiny-api / src / mysql.js View on Github external
this.column("createdOn").dateTime();
        this.column("savedOn").dateTime();
        this.column("updatedOn").dateTime();

        this.column("deleted")
            .tinyInt(1)
            .setDefault(0);
    }
}

MySQLTable.setEngine("InnoDB")
    .setDefaultCharset("utf8mb4")
    .setCollate("utf8mb4_general_ci");

MySQLTable.setDriver(new MySQLDriver());

export default MySQLTable;

webiny-sql-table-mysql

An SQL query builder.

MIT
Latest version published 5 years ago

Package Health Score

66 / 100
Full package analysis

Popular webiny-sql-table-mysql functions

Similar packages