Skip to content

Commit

Permalink
Fix docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
georgysavva committed Jun 28, 2020
1 parent ff28999 commit 0f72abf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,12 @@ dbscan uses "." as a separator, for example:
Row struct is mapped to the following columns: "user_id", "email", "post.id", "post.text".
In order to scan into a field it must be exported, unexported fields will be ignored.
If dbscan can't find corresponding field for a column it returns an error,
Note that, in order for dbscan to work with a field it must be exported, unexported fields will be ignored.
In case there is no corresponding field for a column dbscan returns an error,
this forces to only select data from the database that application needs.
Also, if struct contains multiple fields that are mapped to the same column,
if a struct contains multiple fields that are mapped to the same column,
dbscan won't be able to make the chose to which field to assign and return an error, for example:
type User struct {
Expand Down

0 comments on commit 0f72abf

Please sign in to comment.