mstdokumaci / arraydb

define your data model using array configs, reach your data as arrays.
70 stars 17 forks source link

suggestion about a sentence #3

Open marslei opened 11 years ago

marslei commented 11 years ago

hi Mustafa Dokumacı, I am reading https://github.com/mstdokumaci/arraydb/tree/master/doc at this moment. When i come to this snipt code, i got pulzz 'post'=>array( 'conf'=>array('len'=>10), 'fields'=>array( 'text'=>array('len'=>200), 'view_count'=>array('type'=>'numeric', 'len'=>5) // default field type is text, define if numeric ) ) define if numeric Is there any mistake about this sentence. Do you want to express that view_count field is defined as number? So, my suggestion is define it as numeric.

Best Regards!

Mars Lei www.leicixiang.cn

mstdokumaci commented 11 years ago

i just meant to tell that you don't need to define type of every field. text type is defined by default. you only need to define type, when you need a numeric field. maybe i am not good in English.

marslei commented 11 years ago

I got it.