Why don’t you just try it? As I’ve said, pysqlite returns unicode for strings already so the SQLAlchemy type isn’t really important except in some in-Python expression situations (like getting the + operator to do string concatenation).
Your table is returning everything as NullType because that table def doesn’t actually have any types in it.
Bao Niu <
niub...@gmail.com> wrote:
> Hi Michael, I don't have any problem having them all as NullType, but I just want to make sure the SQLite will deal with smoothly even when they are actually not NullType but Unicode/UnicodeText types. May I just go ahead and use NullType here instead of explicitly re-define all those columns as Unicode/UnicodeText? Please give a little hint here. Thanks.
>
> On Wed, Jan 7, 2015 at 1:06 PM, Bao Niu <
niub...@gmail.com> wrote:
> Here is what I got from sqlite> select sql from sqlite_master where name=‘<tablename>’;
>
> CREATE TABLE "persons" ("ID" ,"名" ,"中间名" ,"姓" ,"类别" ,"生日" ,"主要电话" ,"住宅传真" ,"住宅地址国家地区" ,"住宅地址市县" ,"住宅地址街道" ,"住宅地址邮政编码" ,"住宅电话" ,"住宅电话2" ,"其他传真" ,"其他地址国家地区" ,"其他地址市县" ,"其他地址省市自治区" ,"其他地址街道" ,"其他地址邮政编码" ,"其他电话" ,"办公地点" ,"单位" ,"单位主要电话" ,"商务传真" ,"商务地址国家地区" ,"商务地址市县" ,"商务地址省市自治区" ,"商务地址街道" ,"商务地址邮政编码" ,"商务电话" ,"商务电话2" ,"寻呼机" ,"无绳电话" ,"电子邮件2地址" ,"电子邮件3地址" ,"电子邮件地址" ,"移动电话" ,"经理姓名" ,"网页" ,"职务" ,"部门" ,"配偶" ,"附注" )
>
>