Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⬆️ Bump github.com/stephenafamo/bob from 0.29.0 to 0.30.0 #33

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 17, 2025

Bumps github.com/stephenafamo/bob from 0.29.0 to 0.30.0.

Release notes

Sourced from github.com/stephenafamo/bob's releases.

v0.30.0

Added

  • Added a new field QueryFolders to gen/drivers.DBInfo for drivers to be able to include information about parsed queries.
  • Added gen/QueriesTemplates which in the future will contain base templates for generating code for parsed qureries.
  • Added a QueryTemplate field to bobgen_helpers.Templates for drivers to include additional templates for queries.
  • Added a new reserved output key queries. This is handled specially for each query folder supplied by the driver.
  • Added new wm package to each dialect for mods that modify Window clauses.
  • Added a new method Alias for View struct, for each dialect. It returns the alias of the view. (thanks @​Nitjsefni7)

Changed

  • Updated error constant generation to employ specific error types for making error matching easier. (thanks @​mbezhanov)
  • Collation in clause.OrderDef is now a string not an expression and is always quoted
  • Calling UpdateAll, DeleteAll and ReloadAll on an empty model slice now returns nil without running any queries.
  • UNION, INTERSECT and EXCEPT mods now append to the query instead of replacing it.
  • Generated files now end with .bob.go instead of .go and are always cleaned up before generating new files. Singleton templates are now required to have a .bob.go.tpl extension.
  • The expected structure for templates have been changed:
    • Previously, singleton templates should be kept in a singleton folder. Now, any template not inside a folder is considered a singleton template.
    • Previoulsy, templates in the root folder are merged and run for each table. Now, this will happen to templates in the table/ folder.
    • Previoulsy, the entire file tree and every subdirectory is walked to find templates. Now only templates in the root folder and the table/ folder are considered.
  • Change From in clause.Window to BasedOn to avoid confusion with FromPreceding and FromFollowing. Also change SetFrom to SetBasedOn.
  • Embed clause.OrderBy in clause.Window to make it possible to reuse OrderBy mods in window definitions.
  • Change the Definition field in clause.NamedWindow from any to clause.Window for extra type safety.
  • sm.Window now takes mods to modify the window clause.
  • fm.Over now takes mods to modify the window for the window function.

Deprecated

  • Deprecated the wipe option to delete all files in the output folder. Files are now generated with a .bob.go extension and are always cleaned up before generating new files.

Removed

  • Remove redundatnt type parameters from orm.ExecQuery.
  • Remove unnecessary interface in orm.Query and orm.ExecQuery.
  • Remove the redundant clause.IWindow interface.
  • Remove dialect.WindowMod and dialect.WindowMods which use chainable methods to modify Window clauses. This is now handled by the wm package which used mods.

Fixed

  • Fix random value generation for pq.Float64Array factory (thanks @​felipeparaujo)
  • Using the UpdateMod() and DeleteMod() methods on an empty model slice now appends WHERE primary_key IN NULL which will return no results. Instead of WHERE primary_key IN () which is a syntax error.
  • Ensure net/netip is imported for the pgtypes.Inet random expression (thanks @​plunkettscott)
  • Fix a data race when adding enum types.
  • Fix missing schema in table alias in pkEQ and pkIN clauses (thanks @​adatob).

New Contributors

... (truncated)

Changelog

Sourced from github.com/stephenafamo/bob's changelog.

[v0.30.0] - 2025-01-16

Added

  • Added a new field QueryFolders to gen/drivers.DBInfo for drivers to be able to include information about parsed queries.
  • Added gen/QueriesTemplates which in the future will contain base templates for generating code for parsed qureries.
  • Added a QueryTemplate field to bobgen_helpers.Templates for drivers to include additional templates for queries.
  • Added a new reserved output key queries. This is handled specially for each query folder supplied by the driver.
  • Added new wm package to each dialect for mods that modify Window clauses.
  • Added a new method Alias for View struct, for each dialect. It returns the alias of the view. (thanks @​Nitjsefni7)

Changed

  • Updated error constant generation to employ specific error types for making error matching easier. (thanks @​mbezhanov)
  • Collation in clause.OrderDef is now a string not an expression and is always quoted
  • Calling UpdateAll, DeleteAll and ReloadAll on an empty model slice now returns nil without running any queries.
  • UNION, INTERSECT and EXCEPT mods now append to the query instead of replacing it.
  • Generated files now end with .bob.go instead of .go and are always cleaned up before generating new files. Singleton templates are now required to have a .bob.go.tpl extension.
  • The expected structure for templates have been changed:
    • Previously, singleton templates should be kept in a singleton folder. Now, any template not inside a folder is considered a singleton template.
    • Previoulsy, templates in the root folder are merged and run for each table. Now, this will happen to templates in the table/ folder.
    • Previoulsy, the entire file tree and every subdirectory is walked to find templates. Now only templates in the root folder and the table/ folder are considered.
  • Change From in clause.Window to BasedOn to avoid confusion with FromPreceding and FromFollowing. Also change SetFrom to SetBasedOn.
  • Embed clause.OrderBy in clause.Window to make it possible to reuse OrderBy mods in window definitions.
  • Change the Definition field in clause.NamedWindow from any to clause.Window for extra type safety.
  • sm.Window now takes mods to modify the window clause.
  • fm.Over now takes mods to modify the window for the window function.

Deprecated

  • Deprecated the wipe option to delete all files in the output folder. Files are now generated with a .bob.go extension and are always cleaned up before generating new files.

Removed

  • Remove redundatnt type parameters from orm.ExecQuery.
  • Remove unnecessary interface in orm.Query and orm.ExecQuery.
  • Remove the redundant clause.IWindow interface.
  • Remove dialect.WindowMod and dialect.WindowMods which use chainable methods to modify Window clauses. This is now handled by the wm package which used mods.

Fixed

  • Fix random value generation for pq.Float64Array factory (thanks @​felipeparaujo)
  • Using the UpdateMod() and DeleteMod() methods on an empty model slice now appends WHERE primary_key IN NULL which will return no results. Instead of WHERE primary_key IN () which is a syntax error.
  • Ensure net/netip is imported for the pgtypes.Inet random expression (thanks @​plunkettscott)
  • Fix a data race when adding enum types.
  • Fix missing schema in table alias in pkEQ and pkIN clauses (thanks @​adatob).
Commits
  • 0213e2b Update CHANGELOG.md for v0.30.0 release
  • e9f0b5b Add thanks to CHANGELOG
  • 3f65e45 Merge pull request #339 from Nitjsefni7/feature/allow-retrieve-alias-field-fr...
  • 09ce6a8 update changelog
  • 8670a1c add method to retrieve alias from view struct
  • 91f9bef Use mods to define windows, not chain methods
  • 23853ab UNION/INTERSECT/EXCEPT mods now append not replace
  • 3eb0ee1 Update CHANGELOG for #327
  • 962c620 Merge pull request #327 from adatob/bugfix/missing-primary-key-schema-alias
  • 1da2c27 Merge pull request #329 from stephenafamo/queries
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/stephenafamo/bob](https://github.com/stephenafamo/bob) from 0.29.0 to 0.30.0.
- [Release notes](https://github.com/stephenafamo/bob/releases)
- [Changelog](https://github.com/stephenafamo/bob/blob/main/CHANGELOG.md)
- [Commits](stephenafamo/bob@v0.29.0...v0.30.0)

---
updated-dependencies:
- dependency-name: github.com/stephenafamo/bob
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants