yanntyb/populate

There is no license information available for the latest version (dev-main) of this package.

dev-main 2022-01-20 13:54 UTC

This package is not auto-updated.

Last update: 2024-05-14 20:47:15 UTC


README

How to use Populate class

First you need to setup the class with Populate::setup(dbname,user,password) Then make a maker like this maker = Populate::maker(column_name) Finaly maker->populate(number_of_row, [data]) data should be an array of corresponding type like : [ ['type' => 'string', 'len' => number], ['type' => 'number', 'min' => number, 'max' => number], ['type' => 'fk', 'table' => string], ] Every time need a 'name' property