You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will generate the create DDL: "CREATE TABLE post (id number, title string, body string)"
What are the valid values for dataType and is there a way that they can be converted to the correct type for the database (e.g. string might be varchar(255)?
The text was updated successfully, but these errors were encountered:
If this extension were to be supported I'd be worth getting @charsleysa 's input up front, as this has the potential to be a breaking change. Perhaps supporting a dataTypes export that exposes DataType objects so that the ColumnNode dataType?: string | DataType, so it's backwards compatible and supports overrides for unusual types. API could be:
I'm trying to generate SQL create DDL from a SQL define using this code:
This generates an error: ERROR dataType missing for column id (CREATE TABLE and ADD COLUMN statements require a dataType).
I can get the define to work by changing the columns in the define to:
columns: [{name: 'id', dataType: "number"}, {name:'title', dataType: "string"}, {name:'body', dataType: "string"}]
This will generate the create DDL: "CREATE TABLE
post
(id
number,title
string,body
string)"What are the valid values for dataType and is there a way that they can be converted to the correct type for the database (e.g. string might be varchar(255)?
The text was updated successfully, but these errors were encountered: