Versions in this module Expand all Collapse all v0 v0.6.0 Jul 26, 2025 Changes in this version + func LoadSchemaFromPath(path string) (map[string]*schema.Schema, error) v0.5.0 Jul 19, 2025 v0.4.0 Jul 8, 2025 v0.3.0 Jul 7, 2025 v0.2.0 Jul 7, 2025 Changes in this version + func ParseSchema(content string) (map[string]*schema.Schema, error) + func ParseSchemaFile(filename string) (map[string]*schema.Schema, error) + type ArrayExpression struct + Elements []Expression + func (ae *ArrayExpression) String() string + type Attribute struct + Args []Expression + Name string + func (a *Attribute) String() string + type BlockAttribute struct + Args []Expression + Name string + func (ba *BlockAttribute) String() string + type Converter struct + func NewConverter() *Converter + func (c *Converter) Convert(prismaSchema *PrismaSchema) (map[string]*schema.Schema, error) + func (c *Converter) GetDatabaseProvider() string + func (c *Converter) GetDatabaseURL() string + func (c *Converter) GetDatasource() *DatasourceStatement + func (c *Converter) GetGenerator() *GeneratorStatement + func (c *Converter) GetGeneratorProvider() string + type DatasourceStatement struct + Name string + Properties []*Property + func (ds *DatasourceStatement) String() string + type DotExpression struct + Left Expression + Right string + func (de *DotExpression) String() string + type EnumStatement struct + Name string + Values []*EnumValue + func (es *EnumStatement) String() string + type EnumValue struct + Attributes []*Attribute + Name string + type Expression interface + type Field struct + Attributes []*Attribute + List bool + Name string + Optional bool + Type *FieldType + func (f *Field) String() string + type FieldType struct + Name string + func (ft *FieldType) String() string + type FunctionCall struct + Args []Expression + Name string + func (fc *FunctionCall) String() string + type GeneratorStatement struct + Name string + Properties []*Property + func (gs *GeneratorStatement) String() string + type Identifier struct + Value string + func (i *Identifier) String() string + type Lexer struct + func NewLexer(input string) *Lexer + func (l *Lexer) NextToken() Token + type ModelStatement struct + BlockAttributes []*BlockAttribute + Fields []*Field + Name string + func (ms *ModelStatement) String() string + type NamedArgument struct + Name string + Value Expression + func (na *NamedArgument) String() string + type Node interface + String func() string + type NumberLiteral struct + Value string + func (nl *NumberLiteral) String() string + type Parser struct + func NewParser(lexer *Lexer) *Parser + func (p *Parser) Errors() []string + func (p *Parser) ParseSchema() *PrismaSchema + type PrismaSchema struct + Statements []Statement + func (ps *PrismaSchema) String() string + type Property struct + Name string + Value Expression + func (p *Property) String() string + type Statement interface + type StringLiteral struct + Value string + func (sl *StringLiteral) String() string + type Token struct + Column int + Line int + Literal string + Type TokenType + func (t Token) String() string + type TokenType int + const AT + const AUTOINCREMENT + const BIGINT_TYPE + const BIGSERIAL + const BIT + const BLOCK_AT + const BOOLEAN + const CASCADE + const CHAR + const COLON + const COMMA + const COMMENT + const CUID + const DATASOURCE + const DATETIME + const DATE_TYPE + const DB + const DBGENERATED + const DECIMAL + const DECIMAL_TYPE + const DEFAULT + const DOT + const DOUBLEPRECISION + const ENUM + const ENV + const EOF + const EQUALS + const FALSE + const FLOAT + const GENERATOR + const ID + const IDENT + const ILLEGAL + const INDEX + const INET + const INT + const JSON + const JSONB + const LBRACE + const LBRACKET + const LPAREN + const MAP + const MODEL + const MONEY + const NOACTION + const NOW + const NUMBER + const ONDELETE + const ONUPDATE + const QUESTION + const RBRACE + const RBRACKET + const REAL + const RESTRICT + const RPAREN + const SERIAL + const SETDEFAULT + const SETNULL + const SMALLINT + const STRING + const STRING_TYPE + const TEXT + const TIMESTAMP + const TIME_TYPE + const TRUE + const UNIQUE + const UPDATEDAT + const UUID + const UUID_TYPE + const VARBIT + const VARCHAR + const WHITESPACE + const XML + func (t TokenType) String() string v0.1.0 Jul 4, 2025