Skip to content

Commit

Permalink
Add to docs (amberframework#446)
Browse files Browse the repository at this point in the history
* Quote fields in PG query assembler

* Created converter for PG Enums that are returned as bytes

* Quote table names in adapter methods only if not already quoted

* Check if table/column string has already been quoted

* Quote foreign key

* Quote fields in query assemblers

* added some docs

* Created converter for Postgres enum arrays

* Incorrect variable name

* Added target key to association collection for many relations type

* Added truncate function for postgres adapter

* Removed unrequired parameter

* Rogue value in log for truncate

* Added truncate method for models

* Add JsonString converter

* Must use chars to check string index equality

* add note for custom select macro

* removed some other commits

* removed changes from other pr

* removed work from other pr

* removed work from other pr

* removed commits from other pr

---------

Co-authored-by: ionica21 <[email protected]>
  • Loading branch information
2 people authored and kalinon committed Apr 26, 2023
1 parent acde9ae commit 4928ab2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/querying.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ You can combine this with an argument to `all` or `first` for maximum flexibilit
results = CustomView.all("WHERE articles.author = ?", ["Noah"])
```

Note - the column order does matter, and you should match your SELECT query to have the columns in the same order they are in the database.

## Exists?

The `exists?` class method returns `true` if a record exists in the table that matches the provided _id_ or _criteria_, otherwise `false`.
Expand Down

0 comments on commit 4928ab2

Please sign in to comment.