fernyb / Sequel-J

A MySQL Client written in Cappuccino (work in progress)
31 stars 1 forks source link

Return column information with "header_names" #21

Open joehoyle opened 13 years ago

joehoyle commented 13 years ago

Currently the API request for header_names return a JS array of strings. I have updated the PHP API and the capp app to use an object:

{ name: post_parent, type: bigint(20) }

We can include an extra meta in the future. I did this so we have the type in scope for both calculating columns widths (ints don't need to be very wide, datatime can be fixed etc) and also when editing a row's column, we need to know the datatype to decide whether to edit inline, or a modal (like when you edit a "text" row column in sequel pro).