Is it possible to configure a drdl file so that mongosqld will convert an object to JSON and present it as varchar?
For example if this name/value is part of a document in Mongo:
"recordData" : {
"subject" : {
"txtFirstName" : "Harley",
"txtLastName" : "Holland",
"dtBirthDate" : "1942-06-14",
"txtCity" : "Bedrock",
"txtState" : "Idaho",
"selGender" : "Male"
}
}
I’d like to create a drdl entry that would convert the whole objecte to a json string within one sql column.
I can’t find a list of supported types in drdl. In the example below I’ve tried both object and string in place of bson.document and none work.
- Name: recordData
MongoType: bson.document
SqlName: recordData
SqlType: varchar
Any pointers would help.