Sqlite Toolkit - struct2dbtable


: t = struct2dbtable (astruct)

Create a dbtable from a struct

This function uses the field names and data of the fields to create a table representation of the struct.

Each fieldname will be a variable in the table. The data for each variable will be the data of the fieldname, and is expected to be a uniform size for all fields in the struct.

Inputs

astruct

A struct with same number of elements in each field

Outputs

t

a dbtable of the astruct data