ReviewOS

also looking at this

stacks/bun-query-builder

fix(types): config options should not require what the library already defaults

#1064
Merged glennmichael123 wants to merge fix/config-options-deep-partial into main
12 files +885 -117
README.mdmodified+21-0
Changes to README.md
@@ -81,6 +81,27 @@ const q = db
8181const rows = await q.execute()
8282```
8383
84### Configuration
85
86Drop a `query-builder.config.ts` in your project root. Every field is optional at
87every depth — supply only what you want to change, and the library defaults the rest:
88
89```ts
90import { defineConfig } from 'bun-query-builder'
91
92export default defineConfig({
93 dialect: 'postgres',
94 database: { database: 'my_app' },
95})
96```
97
98```ts
99// Load it once at app boot, or configure from code with setConfig().
100import { getConfig } from 'bun-query-builder'
101
102await getConfig()
103```
104
84105### Aggregations
85106
86107```ts