feat: one install and one import per database; server dialects open their pool from a URL; nodeListener answers a throwing context; 0.5.0
This commit is contained in:
+2
-2
@@ -52,7 +52,7 @@ resources: {
|
||||
`sensitive` replaces the whole pattern, for every resource. Start from `DEFAULT_SENSITIVE` to add words rather than lose the defaults:
|
||||
|
||||
```ts
|
||||
import { createREST, DEFAULT_SENSITIVE } from '@crudy/restloom';
|
||||
import { createREST, DEFAULT_SENSITIVE } from '@crudy/restloom-postgres';
|
||||
|
||||
createREST({
|
||||
db, // from a database package, see Dialects
|
||||
@@ -64,7 +64,7 @@ createREST({
|
||||
## Hooks
|
||||
|
||||
```ts
|
||||
import { createREST, RestError } from '@crudy/restloom';
|
||||
import { createREST, RestError } from '@crudy/restloom-postgres';
|
||||
|
||||
createREST({
|
||||
db, // from a database package, see Dialects
|
||||
|
||||
Reference in New Issue
Block a user