Migrations [PostgreSQL MySQL] Migration names Migration status Migration groups and rollbacks Go-based migrations SQL-based migrations Migrations [PostgreSQL MySQL] You can...
Soft deletes in PostgreSQL and MySQL Introduction Using Bun models Using table views Unique indexes Soft deletes in PostgreSQL and MySQL Introduction Soft deletes allow mar...
Select [PostgreSQL MySQL] API Example Count rows EXISTS Joins Subqueries Select [PostgreSQL MySQL] API For the full list of supported methods, see SelectQueryopen in new ...
Create Table [PostgreSQL MySQL] API Example ResetModel Hooks Create Table [PostgreSQL MySQL] API For the full list of supported methods, see CreateTableQueryopen in new win...
DI Framework DI Framework So there's a fancy new Hamburger class that is easy to test, but it'scurrently awkward to work with. Instantiating a Hamburger requires: const ham...
Where [PostgreSQL MySQL] Basics QueryBuilder WHERE IN WherePK WHERE VALUES Grouping Where [PostgreSQL MySQL] Basics You can use arbitrary unsafe expressions in Where : q...
Bun Starter Kit App structure Starting the app Migrations Bun Starter Kit Bun starter kitopen in new window consists of: bunrouteropen in new window is an exremely fast a...
SQL Placeholders Introduction Basic and positional placeholders bun.Ident bun.Safe IN Model placeholders Global placeholders SQL Placeholders Introduction Bun recognizes...
DI 框架 DI 框架 现在我们有一个花里胡哨的 Hamburger 类,它容易测试,但是目前工作起来很尴尬。实例化一个 Hamburger 需要: const hamburger = new Hamburger ( new Bun (), new Patty ( 'beef' ), new Toppings (...