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

common db CRUD functions #19

Open
MissAllSunday opened this issue Dec 4, 2016 · 0 comments
Open

common db CRUD functions #19

MissAllSunday opened this issue Dec 4, 2016 · 0 comments

Comments

@MissAllSunday
Copy link
Owner

Add some methods for common db CRUD functions, an example: https://github.com/MissAllSunday/Breeze/blob/develop/Sources/Breeze/BreezeQuery.php#L1089 of course way more generic. Perhaps adding a "db" property to specify your table schema:

$_dbSchema = array(
	'table1' => array(
		'column1' => 'type',
		'column2' => 'int',
		'column3' => 'string',
	),
	'table2' => array(
		'column1' => 'type',
		'column2' => 'int',
		'column3' => 'string',
	),
);

Or just let you specify your table but that means adding more params to each function which kinda defeats the purpose of having helper functions in the first place.

MissAllSunday added a commit that referenced this issue Dec 8, 2016
#19

Signed-off-by: Jessica González <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant