Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Database layer refactor #271

Closed
ercanozkaya opened this issue Apr 19, 2021 · 0 comments
Closed

Database layer refactor #271

ercanozkaya opened this issue Apr 19, 2021 · 0 comments
Assignees
Labels
Milestone

Comments

@ercanozkaya
Copy link
Contributor

See: joomlatools/joomlatools-framework#476

@ercanozkaya ercanozkaya added this to the 3.1 milestone Apr 19, 2021
@ercanozkaya ercanozkaya self-assigned this Apr 19, 2021
ercanozkaya added a commit that referenced this issue Apr 19, 2021
Make Database decorate an application-wide singleton for the app database adapter
Add DatabaseAdapterAbstract::getQuery($identifier) to return a query object with the adapter set
Add Database::getQuery($identifier) as a shortcut to get a query with the app database adapter set
Set the default adapter with Database in KDatabaseTableAbstract
Remove the ObjectMultiton from DatabaseAdapterAbstract. Now that we have KDatabase::getAdapter() no need to make every adapter a singleton especially since with SQLite there will be a need for different adapters with the same identifier.
Add DatabaseAdapterPdo that accepts any PDO connection string
Add KDatabaseAdapterSqlite as a specialised PDO adapter that knows how to parse SQLite table information
@ercanozkaya ercanozkaya modified the milestones: 3.1, v3.1.0 May 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant