{"modulePath":"github.com/sunary/sqlize","version":"v1.0.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package sqlize\n\n## Types\n\n```go\ntype Sqlize struct {\n\t// contains filtered or unexported fields\n}\n```\nSqlize ...\n\n```go\nfunc NewSqlize(opts ...SqlizeOption) *Sqlize\n```\nNewSqlize ...\n\n```go\nfunc (s Sqlize) AvroSchema(needTables ...string) []string\n```\nAvroSchema export avro schema, support mysql only\n\n```go\nfunc (s Sqlize) Diff(old Sqlize)\n```\nDiff differ between 2 migrations\n\n```go\nfunc (s *Sqlize) FromMigrationFolder() error\n```\nFromMigrationFolder load migration from folder \\`migrations\\`\n\n```go\nfunc (s *Sqlize) FromObjects(objs ...interface{}) error\n```\nFromObjects load from objects\n\n```go\nfunc (s *Sqlize) FromString(sql string) error\n```\nFromString load migration from sql\n\n```go\nfunc (s Sqlize) HashValue() int64\n```\nHashValue ...\n\n```go\nfunc (s Sqlize) MermaidJsErd(needTables ...string) string\n```\nMermaidJsErd export MermaidJs ERD\n\n```go\nfunc (s Sqlize) MermaidJsLive(needTables ...string) string\n```\nMermaidJsLive export MermaidJs Live\n\n```go\nfunc (s Sqlize) StringDown() string\n```\nStringDown migration down\n\n```go\nfunc (s Sqlize) StringDownWithVersion(ver int64) string\n```\nStringDownWithVersion migration down with version\n\n```go\nfunc (s Sqlize) StringUp() string\n```\nStringUp migration up\n\n```go\nfunc (s Sqlize) StringUpWithVersion(ver int64, dirty bool) string\n```\nStringUpWithVersion migration up with version\n\n```go\nfunc (s Sqlize) WriteFiles(name string) error\n```\nWriteFiles create migration files\n\n```go\nfunc (s Sqlize) WriteFilesVersion(name string, ver int64, dirty bool) error\n```\nWriteFilesVersion create migration version only\n\n```go\nfunc (s Sqlize) WriteFilesWithVersion(name string, ver int64, dirty bool) error\n```\nWriteFilesWithVersion create migration files with version\n\n```go\ntype SqlizeOption interface {\n\t// contains filtered or unexported methods\n}\n```\nSqlizeOption ...\n\n```go\nfunc WithCommentGenerate() SqlizeOption\n```\nWithCommentGenerate default is off\n\n```go\nfunc WithIgnoreFieldOrder() SqlizeOption\n```\nWithIgnoreFieldOrder ...\n\n```go\nfunc WithMigrationFolder(path string) SqlizeOption\n```\nWithMigrationFolder ...\n\n```go\nfunc WithMigrationSuffix(upSuffix, downSuffix string) SqlizeOption\n```\nWithMigrationSuffix ...\n\n```go\nfunc WithMigrationTable(table string) SqlizeOption\n```\nWithMigrationTable default is 'schema\\_migration'\n\n```go\nfunc WithMysql() SqlizeOption\n```\nWithMysql default\n\n```go\nfunc WithPluralTableName() SqlizeOption\n```\nTable name plus s default\n\n```go\nfunc WithPostgresql() SqlizeOption\n```\nWithPostgresql ...\n\n```go\nfunc WithSqlLowercase() SqlizeOption\n```\nWithSqlLowercase ...\n\n```go\nfunc WithSqlTag(sqlTag string) SqlizeOption\n```\nWithSqlTag default is \\`sql\\`\n\n```go\nfunc WithSqlUppercase() SqlizeOption\n```\nWithSqlUppercase default\n\n```go\nfunc WithSqlite() SqlizeOption\n```\nWithSqlite ...\n\n```go\nfunc WithSqlserver() SqlizeOption\n```\nWithSqlserver ...\n\n","path":"github.com/sunary/sqlize","name":"sqlize","synopsis":"","isRedistributable":true}
