Handle all query in a more secure way #2
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: game-projects/dragon-forks#2
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
-> Use PDO for all query, in a Database class, and that'll count queries
-> Keep the table system where we parse a "{{table}}", it's usefull for what'll do. But for all the rest, use PDO native parameter system
-> Add a repository system with a Repository parent class and specific class for all repositories, that'll live in a /repositories or a /core/repositories folder.
-> Add a $dbField array that contains data for array and stuff (as something like
'id'=>['type'='smallint(5) unsigned', 'nullable'=>false, 'defaultValue'=>'0', autoIncrement=>true]
)-> Add some query construction to update/create using those fields
-> Add a create table function for tables.
-> Handle default datas as JSON files ?