We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Right now this code:
"""CREATE TABLE [dbo].[users_WorkSchedule]( [id] [int] IDENTITY(1,1) NOT NULL, [RequestDropDate] [smalldatetime] NULL, [ShiftClass] [varchar](5) NULL, [StartHistory] [datetime2](7) GENERATED ALWAYS AS ROW START NOT NULL, [EndHistory] [datetime2](7) GENERATED ALWAYS AS ROW END NOT NULL, CONSTRAINT [PK_users_WorkSchedule_id] PRIMARY KEY CLUSTERED ( [id] ASC ) WITH ( PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON ) ON [PRIMARY], PERIOD FOR SYSTEM_TIME ([StartHistory], [EndHistory]) ) """
produces models like:
from gino import Gino from sqlalchemy.dialects.postgresql import ARRAY db = Gino(schema="[dbo]") class [users_WorkSchedule](db.Model): __tablename__ = '[users_WorkSchedule]' [id] = db.Column(ARRAY((1,1)), nullable=False) [RequestDropDate] = db.Column(ARRAY(())) [ShiftClass] = db.Column(ARRAY((5))) [StartHistory] = db.Column(ARRAY((7)), nullable=False) [EndHistory] = db.Column(ARRAY((7)), nullable=False)
need to remove [] from types, tables, columns names & etc before generate code based on metadata from DDL
The text was updated successfully, but these errors were encountered:
fixed in 0.11.0 version
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Right now this code:
produces models like:
need to remove [] from types, tables, columns names & etc before generate code based on metadata from DDL
The text was updated successfully, but these errors were encountered: