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

refactor: DB config properties #8693

Merged
merged 5 commits into from
Apr 2, 2024

Conversation

kenjis
Copy link
Member

@kenjis kenjis commented Apr 1, 2024

Description

  • remove inappropriate default values
  • add sample db config as comments
  • deprecate BaseConnection::$strictOn

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value
  • [] Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

These are the values for MySQLi.
This property is only for MySQL, and there does not appear to be
any other databases that will require this property in the future.
So it should be in MySQLi\Connection.
@kenjis kenjis added database Issues or pull requests that affect the database layer refactor Pull requests that refactor code 4.5 labels Apr 1, 2024
// 'time' => 'H:i:s',
// ],
// ];

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really want to include all these examples here, and not in the user guide? I understand that it can be handy, but in general, I don't think we include examples in the code we distribute.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The existence of these examples makes it take less time to set up. I have no problem with these.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we change the default DB driver, we would edit this file.
So they make it take less time to set up than the user guide.

@kenjis kenjis merged commit 2c2b3cd into codeigniter4:4.5 Apr 2, 2024
41 checks passed
@kenjis kenjis deleted the refactor-db-properties branch April 2, 2024 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.5 database Issues or pull requests that affect the database layer refactor Pull requests that refactor code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants