canonical / sqlair

Friendly type mapping for SQL databases
Apache License 2.0
16 stars 8 forks source link

Colocate methods with type definitions #123

Closed Aflynn50 closed 7 months ago

Aflynn50 commented 7 months ago

Move major types to separate files along with their methods and helper functions. Also move (internally) public methods on the types to the top of the files.

Before, the files were organised by the stage in the pipeline. This change moves the methods to be colocated with the type definitions rather than ordering them according to the pipeline.

Methods are only moved here, no code is changed. The documentation in internal/expr/doc.go is updated to reflect the new file names.