├── fs └── testdata │ ├── sqlsymlinks │ ├── dupedir │ ├── product │ │ ├── nested.sql │ │ ├── activity.sql │ │ ├── whatever.sql │ │ ├── extensiondontmatter.lol │ │ ├── outsiderepo.sql │ │ ├── .skeema │ │ ├── comments.sql │ │ ├── subscriptions.sql │ │ ├── users.sql │ │ └── posts.sql │ ├── .skeema │ └── analytics │ │ ├── whatever.nosql │ │ ├── .skeema │ │ ├── rollups.sql │ │ ├── pageviews.sql │ │ └── activity.sql │ ├── empty1 │ └── .skeema │ ├── cfgsymlinks1 │ ├── invalidabs │ │ ├── .skeema │ │ └── users.sql │ ├── invalidrel │ │ ├── .skeema │ │ └── users.sql │ ├── validrel │ │ ├── .skeema │ │ └── users.sql │ └── .skeema │ ├── cfgsymlinks2 │ ├── .skeema │ └── product │ │ ├── .skeema │ │ ├── comments.sql │ │ ├── subscriptions.sql │ │ ├── users.sql │ │ └── posts.sql │ ├── host │ ├── .skeema │ └── db │ │ ├── .skeema │ │ ├── comments.sql │ │ ├── subscriptions.sql │ │ ├── users.sql │ │ └── posts.sql │ ├── empty2 │ └── .skeema │ ├── named1 │ ├── .skeema │ └── tables.sql │ ├── named2 │ ├── .skeema │ └── tables.sql │ ├── named3 │ ├── .skeema │ └── tables.sql │ ├── named4 │ └── tables.sql │ ├── nodelimiter1.sql │ └── nodelimiter2.sql ├── applier └── testdata │ ├── simple │ ├── one │ │ ├── .skeema │ │ └── foo.sql │ ├── two │ │ ├── .skeema │ │ └── bar.sql │ └── .skeema │ ├── sqlerror │ ├── one │ │ ├── .skeema │ │ ├── bad.sql │ │ └── foo.sql │ ├── two │ │ ├── .skeema │ │ └── bar.sql │ └── .skeema │ ├── multi │ ├── shards │ │ ├── .skeema │ │ ├── foo.sql │ │ └── bar.sql │ └── .skeema │ ├── schemaerror │ ├── two │ │ ├── .skeema │ │ └── bar.sql │ ├── three │ │ ├── .skeema │ │ └── three.sql │ ├── four │ │ ├── .skeema │ │ └── four.sql │ ├── one │ │ ├── .skeema │ │ └── foo.sql │ └── .skeema │ ├── named │ ├── conflict1 │ │ ├── tables.sql │ │ └── .skeema │ ├── multi │ │ ├── .skeema │ │ └── tables.sql │ ├── conflict3 │ │ ├── .skeema │ │ └── tables.sql │ ├── .skeema │ ├── namedonly │ │ ├── .skeema │ │ └── tables.sql │ └── conflict2 │ │ ├── .skeema │ │ └── tables.sql │ └── ddlstatement.sql ├── linter └── testdata │ ├── namedok2 │ ├── .skeema │ └── tables.sql │ ├── namedconflict │ ├── .skeema │ └── tables.sql │ ├── hidden │ └── .skeema │ ├── pagecomprmaria │ └── .skeema │ ├── pagecomprmysql │ └── .skeema │ ├── namedok1 │ └── tables.sql │ ├── validcfg │ ├── nopk.sql │ ├── fine.sql │ ├── badengine.sql │ ├── multibad.sql │ ├── .skeema │ ├── hastime.sql │ ├── hasfloat.sql │ └── routines.sql │ └── offsets.sql ├── vendor ├── google.golang.org │ └── grpc │ │ └── AUTHORS ├── github.com │ ├── Microsoft │ │ └── go-winio │ │ │ ├── .gitignore │ │ │ ├── syscall.go │ │ │ └── go.mod │ ├── mattn │ │ └── goveralls │ │ │ ├── .gitignore │ │ │ ├── go.mod │ │ │ ├── renovate.json │ │ │ └── .travis.yml │ ├── sirupsen │ │ └── logrus │ │ │ ├── .gitignore │ │ │ ├── terminal_check_appengine.go │ │ │ ├── terminal_check_no_terminal.go │ │ │ ├── terminal_check_unix.go │ │ │ ├── terminal_check_solaris.go │ │ │ ├── terminal_check_bsd.go │ │ │ ├── terminal_check_notappengine.go │ │ │ ├── appveyor.yml │ │ │ └── go.mod │ ├── skeema │ │ ├── tengo │ │ │ ├── .gitignore │ │ │ └── go.mod │ │ └── mybase │ │ │ └── go.mod │ ├── fsouza │ │ └── go-dockerclient │ │ │ ├── .gitattributes │ │ │ ├── .gitignore │ │ │ ├── DOCKER-LICENSE │ │ │ ├── registry_auth.go │ │ │ └── Makefile │ ├── mitchellh │ │ └── go-wordwrap │ │ │ └── go.mod │ ├── go-sql-driver │ │ └── mysql │ │ │ ├── go.mod │ │ │ └── .gitignore │ ├── moby │ │ ├── sys │ │ │ ├── mountinfo │ │ │ │ ├── go.mod │ │ │ │ ├── mountinfo_windows.go │ │ │ │ └── mountinfo_unsupported.go │ │ │ └── mount │ │ │ │ ├── unmount_unsupported.go │ │ │ │ ├── go.mod │ │ │ │ ├── mounter_unsupported.go │ │ │ │ ├── go.sum │ │ │ │ └── unmount_unix.go │ │ └── term │ │ │ ├── windows │ │ │ └── doc.go │ │ │ ├── go.mod │ │ │ └── tc.go │ ├── opencontainers │ │ ├── go-digest │ │ │ ├── .travis.yml │ │ │ ├── .mailmap │ │ │ ├── .pullapprove.yml │ │ │ └── MAINTAINERS │ │ └── runc │ │ │ └── libcontainer │ │ │ ├── user │ │ │ └── MAINTAINERS │ │ │ └── system │ │ │ ├── sysconfig.go │ │ │ ├── unsupported.go │ │ │ └── sysconfig_notcgo.go │ ├── nozzle │ │ └── throttler │ │ │ └── .gitignore │ ├── docker │ │ ├── docker │ │ │ ├── pkg │ │ │ │ ├── archive │ │ │ │ │ ├── README.md │ │ │ │ │ ├── archive_other.go │ │ │ │ │ ├── copy_windows.go │ │ │ │ │ ├── copy_unix.go │ │ │ │ │ ├── time_unsupported.go │ │ │ │ │ └── time_linux.go │ │ │ │ ├── fileutils │ │ │ │ │ └── fileutils_windows.go │ │ │ │ ├── system │ │ │ │ │ ├── umask_windows.go │ │ │ │ │ ├── meminfo_unsupported.go │ │ │ │ │ ├── utimes_unsupported.go │ │ │ │ │ ├── syscall_unix.go │ │ │ │ │ ├── umask.go │ │ │ │ │ ├── path_unix.go │ │ │ │ │ ├── mknod_windows.go │ │ │ │ │ ├── stat_openbsd.go │ │ │ │ │ ├── chtimes_unix.go │ │ │ │ │ ├── lstat_windows.go │ │ │ │ │ ├── stat_darwin.go │ │ │ │ │ ├── stat_freebsd.go │ │ │ │ │ ├── args_windows.go │ │ │ │ │ ├── errors.go │ │ │ │ │ ├── process_windows.go │ │ │ │ │ ├── xattrs_unsupported.go │ │ │ │ │ ├── meminfo.go │ │ │ │ │ ├── init.go │ │ │ │ │ └── lstat_unix.go │ │ │ │ ├── ioutils │ │ │ │ │ ├── temp_unix.go │ │ │ │ │ └── temp_windows.go │ │ │ │ └── idtools │ │ │ │ │ └── usergroupadd_unsupported.go │ │ │ └── api │ │ │ │ └── types │ │ │ │ └── swarm │ │ │ │ └── runtime │ │ │ │ └── gen.go │ │ └── go-units │ │ │ ├── circle.yml │ │ │ └── README.md │ ├── konsorten │ │ └── go-windows-terminal-sequences │ │ │ └── go.mod │ ├── morikuni │ │ └── aec │ │ │ └── sample.gif │ ├── Azure │ │ └── go-ansiterm │ │ │ ├── context.go │ │ │ ├── winterm │ │ │ └── utilities.go │ │ │ ├── utilities.go │ │ │ └── ground_state.go │ ├── jmoiron │ │ └── sqlx │ │ │ ├── go.mod │ │ │ ├── .gitignore │ │ │ └── go.sum │ ├── pkg │ │ └── errors │ │ │ ├── .travis.yml │ │ │ └── .gitignore │ ├── golang │ │ └── protobuf │ │ │ ├── AUTHORS │ │ │ └── CONTRIBUTORS │ ├── containerd │ │ └── continuity │ │ │ └── sysx │ │ │ └── README.md │ └── alecthomas │ │ └── participle │ │ ├── go.mod │ │ └── go.sum └── golang.org │ └── x │ ├── sys │ ├── unix │ │ ├── .gitignore │ │ ├── endian_big.go │ │ ├── constants.go │ │ ├── endian_little.go │ │ ├── syscall_linux_amd64_gc.go │ │ ├── zsyscall_darwin_386.1_13.s │ │ ├── zsyscall_darwin_arm.1_13.s │ │ ├── zsyscall_darwin_amd64.1_13.s │ │ ├── zsyscall_darwin_arm64.1_13.s │ │ ├── aliases.go │ │ ├── pagesize_unix.go │ │ ├── readdirent_getdents.go │ │ ├── fcntl_linux_32bit.go │ │ ├── syscall_linux_gc_arm.go │ │ ├── asm_aix_ppc64.s │ │ ├── asm_solaris_amd64.s │ │ ├── gccgo_linux_amd64.go │ │ ├── syscall_linux_gc.go │ │ └── errors_freebsd_arm64.go │ ├── AUTHORS │ ├── CONTRIBUTORS │ ├── plan9 │ │ ├── asm.s │ │ ├── pwd_go15_plan9.go │ │ ├── pwd_plan9.go │ │ ├── race0.go │ │ └── mksysnum_plan9.sh │ └── windows │ │ ├── empty.s │ │ ├── aliases.go │ │ ├── mksyscall.go │ │ └── race0.go │ ├── lint │ ├── go.mod │ ├── .travis.yml │ ├── CONTRIBUTING.md │ └── golint │ │ └── importcomment.go │ ├── term │ ├── go.mod │ ├── AUTHORS │ ├── CONTRIBUTORS │ ├── go.sum │ ├── term_unix_aix.go │ ├── term_unix_zos.go │ ├── term_unix_linux.go │ └── term_unix_bsd.go │ ├── sync │ ├── AUTHORS │ └── CONTRIBUTORS │ └── tools │ ├── AUTHORS │ ├── CONTRIBUTORS │ └── go │ ├── ast │ └── astutil │ │ └── util.go │ └── internal │ └── gcimporter │ └── newInterface11.go ├── doc ├── faq.md ├── config.md ├── examples.md ├── options.md ├── requirements.md └── workflow.md ├── dumper └── testdata │ ├── input │ ├── invalid.sql │ ├── routine.sql │ ├── multi.sql │ ├── fine.sql │ ├── users.sql │ └── posts.sql │ └── golden │ ├── invalid.sql │ ├── routine.sql │ ├── fine.sql │ ├── users.sql │ ├── multi.sql │ └── posts.sql ├── workspace └── testdata │ ├── simple │ ├── .skeema │ ├── comments.sql │ ├── subscriptions.sql │ ├── posts.sql │ └── users.sql │ └── tempschema1.sql ├── testdata ├── golden │ ├── pull1 │ │ └── mydb │ │ │ ├── analytics │ │ │ ├── .skeema │ │ │ ├── rollups.sql │ │ │ ├── widget_counts.sql │ │ │ ├── pageviews.sql │ │ │ └── activity.sql │ │ │ ├── archives │ │ │ ├── .skeema │ │ │ └── foo.sql │ │ │ ├── .skeema │ │ │ └── product │ │ │ ├── .skeema │ │ │ ├── subscriptions.sql │ │ │ ├── users.sql │ │ │ └── posts.sql │ ├── init │ │ └── mydb │ │ │ ├── .skeema │ │ │ ├── product │ │ │ ├── .skeema │ │ │ ├── comments.sql │ │ │ ├── subscriptions.sql │ │ │ ├── users.sql │ │ │ └── posts.sql │ │ │ └── analytics │ │ │ ├── .skeema │ │ │ ├── rollups.sql │ │ │ ├── pageviews.sql │ │ │ └── activity.sql │ ├── autoinc │ │ └── mydb │ │ │ ├── .skeema │ │ │ ├── product │ │ │ ├── .skeema │ │ │ ├── comments.sql │ │ │ ├── subscriptions.sql │ │ │ ├── users.sql │ │ │ └── posts.sql │ │ │ └── analytics │ │ │ ├── .skeema │ │ │ ├── rollups.sql │ │ │ ├── pageviews.sql │ │ │ └── activity.sql │ ├── routines │ │ └── mydb │ │ │ ├── .skeema │ │ │ ├── analytics │ │ │ ├── .skeema │ │ │ ├── rollups.sql │ │ │ ├── pageviews.sql │ │ │ └── activity.sql │ │ │ └── product │ │ │ ├── .skeema │ │ │ ├── routine1.sql │ │ │ ├── comments.sql │ │ │ ├── subscriptions.sql │ │ │ ├── users.sql │ │ │ └── posts.sql │ ├── unsupported │ │ └── mydb │ │ │ ├── .skeema │ │ │ ├── product │ │ │ ├── .skeema │ │ │ ├── comments.sql │ │ │ ├── users.sql │ │ │ └── posts.sql │ │ │ └── analytics │ │ │ ├── .skeema │ │ │ ├── rollups.sql │ │ │ ├── pageviews.sql │ │ │ └── activity.sql │ └── ignore │ │ └── mydb │ │ ├── product │ │ ├── .skeema │ │ ├── comments.sql │ │ ├── subscriptions.sql │ │ ├── users.sql │ │ └── posts.sql │ │ ├── analytics │ │ ├── .skeema │ │ ├── rollups.sql │ │ ├── pageviews.sql │ │ └── activity.sql │ │ └── .skeema ├── golden-mysql55 │ ├── pull1 │ │ └── mydb │ │ │ ├── analytics │ │ │ ├── .skeema │ │ │ ├── rollups.sql │ │ │ ├── widget_counts.sql │ │ │ ├── pageviews.sql │ │ │ └── activity.sql │ │ │ ├── archives │ │ │ ├── .skeema │ │ │ └── foo.sql │ │ │ ├── .skeema │ │ │ └── product │ │ │ ├── .skeema │ │ │ ├── subscriptions.sql │ │ │ ├── users.sql │ │ │ └── posts.sql │ ├── autoinc │ │ └── mydb │ │ │ ├── .skeema │ │ │ ├── product │ │ │ ├── .skeema │ │ │ ├── comments.sql │ │ │ ├── subscriptions.sql │ │ │ ├── posts.sql │ │ │ └── users.sql │ │ │ └── analytics │ │ │ ├── .skeema │ │ │ ├── rollups.sql │ │ │ ├── pageviews.sql │ │ │ └── activity.sql │ ├── init │ │ └── mydb │ │ │ ├── .skeema │ │ │ ├── product │ │ │ ├── .skeema │ │ │ ├── comments.sql │ │ │ ├── subscriptions.sql │ │ │ ├── posts.sql │ │ │ └── users.sql │ │ │ └── analytics │ │ │ ├── .skeema │ │ │ ├── rollups.sql │ │ │ ├── pageviews.sql │ │ │ └── activity.sql │ ├── routines │ │ └── mydb │ │ │ ├── .skeema │ │ │ ├── product │ │ │ ├── .skeema │ │ │ ├── routine1.sql │ │ │ ├── comments.sql │ │ │ ├── subscriptions.sql │ │ │ ├── posts.sql │ │ │ └── users.sql │ │ │ └── analytics │ │ │ ├── .skeema │ │ │ ├── rollups.sql │ │ │ ├── pageviews.sql │ │ │ └── activity.sql │ ├── unsupported │ │ └── mydb │ │ │ ├── .skeema │ │ │ ├── product │ │ │ ├── .skeema │ │ │ ├── comments.sql │ │ │ ├── users.sql │ │ │ └── posts.sql │ │ │ └── analytics │ │ │ ├── .skeema │ │ │ ├── rollups.sql │ │ │ ├── pageviews.sql │ │ │ └── activity.sql │ └── ignore │ │ └── mydb │ │ ├── product │ │ ├── .skeema │ │ ├── comments.sql │ │ ├── subscriptions.sql │ │ ├── users.sql │ │ └── posts.sql │ │ ├── analytics │ │ ├── .skeema │ │ ├── rollups.sql │ │ ├── pageviews.sql │ │ └── activity.sql │ │ └── .skeema ├── golden-mysql80 │ ├── pull1 │ │ └── mydb │ │ │ ├── analytics │ │ │ ├── .skeema │ │ │ ├── rollups.sql │ │ │ ├── widget_counts.sql │ │ │ ├── pageviews.sql │ │ │ └── activity.sql │ │ │ ├── archives │ │ │ ├── .skeema │ │ │ └── foo.sql │ │ │ ├── .skeema │ │ │ └── product │ │ │ ├── .skeema │ │ │ ├── subscriptions.sql │ │ │ ├── users.sql │ │ │ └── posts.sql │ ├── autoinc │ │ └── mydb │ │ │ ├── .skeema │ │ │ ├── product │ │ │ ├── .skeema │ │ │ ├── comments.sql │ │ │ ├── subscriptions.sql │ │ │ ├── users.sql │ │ │ └── posts.sql │ │ │ └── analytics │ │ │ ├── .skeema │ │ │ ├── rollups.sql │ │ │ ├── pageviews.sql │ │ │ └── activity.sql │ ├── init │ │ └── mydb │ │ │ ├── .skeema │ │ │ ├── product │ │ │ ├── .skeema │ │ │ ├── comments.sql │ │ │ ├── subscriptions.sql │ │ │ ├── users.sql │ │ │ └── posts.sql │ │ │ └── analytics │ │ │ ├── .skeema │ │ │ ├── rollups.sql │ │ │ ├── pageviews.sql │ │ │ └── activity.sql │ ├── routines │ │ └── mydb │ │ │ ├── .skeema │ │ │ ├── product │ │ │ ├── .skeema │ │ │ ├── routine1.sql │ │ │ ├── comments.sql │ │ │ ├── subscriptions.sql │ │ │ ├── users.sql │ │ │ └── posts.sql │ │ │ └── analytics │ │ │ ├── .skeema │ │ │ ├── rollups.sql │ │ │ ├── pageviews.sql │ │ │ └── activity.sql │ ├── unsupported │ │ └── mydb │ │ │ ├── .skeema │ │ │ ├── product │ │ │ ├── .skeema │ │ │ ├── comments.sql │ │ │ ├── users.sql │ │ │ └── posts.sql │ │ │ └── analytics │ │ │ ├── .skeema │ │ │ ├── rollups.sql │ │ │ ├── pageviews.sql │ │ │ └── activity.sql │ └── ignore │ │ └── mydb │ │ ├── product │ │ ├── .skeema │ │ ├── comments.sql │ │ ├── subscriptions.sql │ │ ├── users.sql │ │ └── posts.sql │ │ ├── analytics │ │ ├── .skeema │ │ ├── rollups.sql │ │ ├── pageviews.sql │ │ └── activity.sql │ │ └── .skeema ├── golden-mariadb102 │ ├── pull1 │ │ └── mydb │ │ │ ├── analytics │ │ │ ├── .skeema │ │ │ ├── rollups.sql │ │ │ ├── widget_counts.sql │ │ │ ├── pageviews.sql │ │ │ └── activity.sql │ │ │ ├── archives │ │ │ ├── .skeema │ │ │ └── foo.sql │ │ │ ├── .skeema │ │ │ └── product │ │ │ ├── .skeema │ │ │ ├── subscriptions.sql │ │ │ ├── users.sql │ │ │ └── posts.sql │ ├── init │ │ └── mydb │ │ │ ├── .skeema │ │ │ ├── product │ │ │ ├── .skeema │ │ │ ├── subscriptions.sql │ │ │ ├── comments.sql │ │ │ ├── users.sql │ │ │ └── posts.sql │ │ │ └── analytics │ │ │ ├── .skeema │ │ │ ├── rollups.sql │ │ │ ├── pageviews.sql │ │ │ └── activity.sql │ ├── autoinc │ │ └── mydb │ │ │ ├── .skeema │ │ │ ├── analytics │ │ │ ├── .skeema │ │ │ ├── rollups.sql │ │ │ ├── pageviews.sql │ │ │ └── activity.sql │ │ │ └── product │ │ │ ├── .skeema │ │ │ ├── subscriptions.sql │ │ │ ├── comments.sql │ │ │ ├── users.sql │ │ │ └── posts.sql │ ├── routines │ │ └── mydb │ │ │ ├── .skeema │ │ │ ├── product │ │ │ ├── .skeema │ │ │ ├── routine1.sql │ │ │ ├── subscriptions.sql │ │ │ ├── comments.sql │ │ │ ├── users.sql │ │ │ └── posts.sql │ │ │ └── analytics │ │ │ ├── .skeema │ │ │ ├── rollups.sql │ │ │ ├── pageviews.sql │ │ │ └── activity.sql │ ├── unsupported │ │ └── mydb │ │ │ ├── .skeema │ │ │ ├── product │ │ │ ├── .skeema │ │ │ ├── comments.sql │ │ │ ├── users.sql │ │ │ └── posts.sql │ │ │ └── analytics │ │ │ ├── .skeema │ │ │ ├── rollups.sql │ │ │ ├── pageviews.sql │ │ │ └── activity.sql │ └── ignore │ │ └── mydb │ │ ├── product │ │ ├── .skeema │ │ ├── subscriptions.sql │ │ ├── comments.sql │ │ ├── users.sql │ │ └── posts.sql │ │ ├── analytics │ │ ├── .skeema │ │ ├── rollups.sql │ │ ├── pageviews.sql │ │ └── activity.sql │ │ └── .skeema ├── foreignkey.sql ├── unsupported1.sql ├── push1.sql └── ignore1.sql ├── tools.go ├── .gitignore └── NOTICE /fs/testdata/sqlsymlinks/dupedir: -------------------------------------------------------------------------------- 1 | product -------------------------------------------------------------------------------- /applier/testdata/simple/one/.skeema: -------------------------------------------------------------------------------- 1 | schema=one 2 | -------------------------------------------------------------------------------- /applier/testdata/simple/two/.skeema: -------------------------------------------------------------------------------- 1 | schema=two 2 | -------------------------------------------------------------------------------- /applier/testdata/sqlerror/one/.skeema: -------------------------------------------------------------------------------- 1 | schema=one 2 | -------------------------------------------------------------------------------- /applier/testdata/sqlerror/two/.skeema: -------------------------------------------------------------------------------- 1 | schema=two 2 | -------------------------------------------------------------------------------- /fs/testdata/empty1/.skeema: -------------------------------------------------------------------------------- 1 | loose-whatever=foo 2 | -------------------------------------------------------------------------------- /linter/testdata/namedok2/.skeema: -------------------------------------------------------------------------------- 1 | host=127.0.0.1 2 | -------------------------------------------------------------------------------- /vendor/google.golang.org/grpc/AUTHORS: -------------------------------------------------------------------------------- 1 | Google Inc. 2 | -------------------------------------------------------------------------------- /applier/testdata/multi/shards/.skeema: -------------------------------------------------------------------------------- 1 | schema=one,two 2 | -------------------------------------------------------------------------------- /applier/testdata/schemaerror/two/.skeema: -------------------------------------------------------------------------------- 1 | schema=two 2 | -------------------------------------------------------------------------------- /fs/testdata/cfgsymlinks1/invalidabs/.skeema: -------------------------------------------------------------------------------- 1 | /etc/bashrc -------------------------------------------------------------------------------- /fs/testdata/sqlsymlinks/product/nested.sql: -------------------------------------------------------------------------------- 1 | activity.sql -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/.gitignore: -------------------------------------------------------------------------------- 1 | *.exe 2 | -------------------------------------------------------------------------------- /applier/testdata/schemaerror/three/.skeema: -------------------------------------------------------------------------------- 1 | schema=, , 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/.gitignore: -------------------------------------------------------------------------------- 1 | _obj/ 2 | unix.test 3 | -------------------------------------------------------------------------------- /fs/testdata/cfgsymlinks2/.skeema: -------------------------------------------------------------------------------- 1 | ../../../testdata/golden/init/mydb -------------------------------------------------------------------------------- /vendor/github.com/mattn/goveralls/.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | /goveralls 3 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/.gitignore: -------------------------------------------------------------------------------- 1 | logrus 2 | vendor 3 | -------------------------------------------------------------------------------- /vendor/github.com/skeema/tengo/.gitignore: -------------------------------------------------------------------------------- 1 | Gopkg.lock 2 | vendor 3 | -------------------------------------------------------------------------------- /applier/testdata/schemaerror/four/.skeema: -------------------------------------------------------------------------------- 1 | [staging] 2 | schema=four 3 | -------------------------------------------------------------------------------- /fs/testdata/sqlsymlinks/product/activity.sql: -------------------------------------------------------------------------------- 1 | ../analytics/activity.sql -------------------------------------------------------------------------------- /fs/testdata/sqlsymlinks/product/whatever.sql: -------------------------------------------------------------------------------- 1 | ../analytics/whatever.nosql -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf 2 | -------------------------------------------------------------------------------- /applier/testdata/schemaerror/one/.skeema: -------------------------------------------------------------------------------- 1 | schema=`thisdoesntexist ohnoes fail` 2 | -------------------------------------------------------------------------------- /fs/testdata/sqlsymlinks/product/extensiondontmatter.lol: -------------------------------------------------------------------------------- 1 | ../analytics/rollups.sql -------------------------------------------------------------------------------- /linter/testdata/namedconflict/.skeema: -------------------------------------------------------------------------------- 1 | ignore-table=^ignore 2 | schema=conflict 3 | -------------------------------------------------------------------------------- /fs/testdata/cfgsymlinks1/invalidrel/.skeema: -------------------------------------------------------------------------------- 1 | ../../../../../../../../../../../etc/bashrc -------------------------------------------------------------------------------- /applier/testdata/sqlerror/one/bad.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE bad ( 2 | this is not going to work 3 | ); -------------------------------------------------------------------------------- /fs/testdata/sqlsymlinks/product/outsiderepo.sql: -------------------------------------------------------------------------------- 1 | ../../../../../tengo/testdata/integration.sql -------------------------------------------------------------------------------- /vendor/github.com/mitchellh/go-wordwrap/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/mitchellh/go-wordwrap 2 | -------------------------------------------------------------------------------- /applier/testdata/named/conflict1/tables.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE xconflict1.tbl1 (id int unsigned); 2 | -------------------------------------------------------------------------------- /fs/testdata/cfgsymlinks1/validrel/.skeema: -------------------------------------------------------------------------------- 1 | ../../../../testdata/golden/init/mydb/product/.skeema -------------------------------------------------------------------------------- /fs/testdata/host/.skeema: -------------------------------------------------------------------------------- 1 | [production] 2 | host=127.0.0.1 3 | port=3306 4 | flavor=mysql:5.7 5 | -------------------------------------------------------------------------------- /doc/faq.md: -------------------------------------------------------------------------------- 1 | ## FAQ 2 | 3 | This document has moved. Please visit: https://www.skeema.io/docs/faq/ 4 | -------------------------------------------------------------------------------- /fs/testdata/cfgsymlinks1/.skeema: -------------------------------------------------------------------------------- 1 | [production] 2 | host=127.0.0.1 3 | port=3306 4 | flavor=mysql:5.6 5 | -------------------------------------------------------------------------------- /fs/testdata/sqlsymlinks/.skeema: -------------------------------------------------------------------------------- 1 | [production] 2 | host=127.0.0.1 3 | port=3306 4 | flavor=mysql:5.6 5 | -------------------------------------------------------------------------------- /fs/testdata/sqlsymlinks/analytics/whatever.nosql: -------------------------------------------------------------------------------- 1 | CREATE TABLE whatever ( 2 | id int unsigned 3 | ); -------------------------------------------------------------------------------- /vendor/github.com/go-sql-driver/mysql/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/go-sql-driver/mysql 2 | 3 | go 1.10 4 | -------------------------------------------------------------------------------- /vendor/github.com/moby/sys/mountinfo/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/moby/sys/mountinfo 2 | 3 | go 1.14 4 | -------------------------------------------------------------------------------- /applier/testdata/named/multi/.skeema: -------------------------------------------------------------------------------- 1 | # this doesn't set a schema name here, only uses what's in tables.sql -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/go-digest/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.7 4 | - master 5 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/.gitignore: -------------------------------------------------------------------------------- 1 | # temporary symlink for testing 2 | testing/data/symlink 3 | -------------------------------------------------------------------------------- /doc/config.md: -------------------------------------------------------------------------------- 1 | ## Configuration 2 | 3 | This document has moved. Please visit: https://www.skeema.io/docs/config/ 4 | -------------------------------------------------------------------------------- /fs/testdata/empty2/.skeema: -------------------------------------------------------------------------------- 1 | schema=foo 2 | default-character-set=latin1 3 | default-collation=latin1_swedish_ci 4 | -------------------------------------------------------------------------------- /fs/testdata/named1/.skeema: -------------------------------------------------------------------------------- 1 | schema=foo 2 | default-character-set=latin1 3 | default-collation=latin1_swedish_ci 4 | -------------------------------------------------------------------------------- /fs/testdata/named2/.skeema: -------------------------------------------------------------------------------- 1 | schema=foo 2 | default-character-set=latin1 3 | default-collation=latin1_swedish_ci 4 | -------------------------------------------------------------------------------- /fs/testdata/named3/.skeema: -------------------------------------------------------------------------------- 1 | schema=foo 2 | default-character-set=latin1 3 | default-collation=latin1_swedish_ci 4 | -------------------------------------------------------------------------------- /linter/testdata/hidden/.skeema: -------------------------------------------------------------------------------- 1 | schema=whatever 2 | default-character-set=latin1 3 | default-collation=latin1_swedish_ci -------------------------------------------------------------------------------- /applier/testdata/named/conflict3/.skeema: -------------------------------------------------------------------------------- 1 | # This matches one schema in tables.sql, but not the other 2 | schema=conflict3 -------------------------------------------------------------------------------- /doc/examples.md: -------------------------------------------------------------------------------- 1 | ## Getting started 2 | 3 | This document has moved. Please visit: https://www.skeema.io/docs/examples/ 4 | -------------------------------------------------------------------------------- /doc/options.md: -------------------------------------------------------------------------------- 1 | ## Options reference 2 | 3 | This document has moved. Please visit: https://www.skeema.io/docs/options/ 4 | -------------------------------------------------------------------------------- /fs/testdata/host/db/.skeema: -------------------------------------------------------------------------------- 1 | schema=product 2 | default-character-set=latin1 3 | default-collation=latin1_swedish_ci 4 | -------------------------------------------------------------------------------- /vendor/github.com/nozzle/throttler/.gitignore: -------------------------------------------------------------------------------- 1 | .glue 2 | !empty 3 | .idea 4 | server.command 5 | *.bak 6 | *.out 7 | *.cov -------------------------------------------------------------------------------- /applier/testdata/multi/.skeema: -------------------------------------------------------------------------------- 1 | host=placeholder 2 | host-wrapper='cat testdata/.scratch/applier-hosts' 3 | password=fakepw 4 | -------------------------------------------------------------------------------- /applier/testdata/named/.skeema: -------------------------------------------------------------------------------- 1 | host=placeholder 2 | host-wrapper='cat testdata/.scratch/applier-hosts' 3 | password=fakepw 4 | -------------------------------------------------------------------------------- /applier/testdata/simple/.skeema: -------------------------------------------------------------------------------- 1 | host=placeholder 2 | host-wrapper='cat testdata/.scratch/applier-hosts' 3 | password=fakepw 4 | -------------------------------------------------------------------------------- /doc/requirements.md: -------------------------------------------------------------------------------- 1 | ## Requirements 2 | 3 | This document has moved. Please visit: https://www.skeema.io/docs/requirements/ 4 | -------------------------------------------------------------------------------- /doc/workflow.md: -------------------------------------------------------------------------------- 1 | ## Recommended workflow 2 | 3 | This document has moved. Please visit: https://www.skeema.io/docs/workflow/ 4 | -------------------------------------------------------------------------------- /dumper/testdata/input/invalid.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE borked1 ( 2 | id int, 3 | lol I dunno, 4 | just make me a good table pls); 5 | -------------------------------------------------------------------------------- /linter/testdata/pagecomprmaria/.skeema: -------------------------------------------------------------------------------- 1 | schema=whatever 2 | default-character-set=latin1 3 | default-collation=latin1_swedish_ci -------------------------------------------------------------------------------- /linter/testdata/pagecomprmysql/.skeema: -------------------------------------------------------------------------------- 1 | schema=whatever 2 | default-character-set=latin1 3 | default-collation=latin1_swedish_ci -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/archive/README.md: -------------------------------------------------------------------------------- 1 | This code provides helper functions for dealing with archive files. 2 | -------------------------------------------------------------------------------- /vendor/github.com/konsorten/go-windows-terminal-sequences/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/konsorten/go-windows-terminal-sequences 2 | -------------------------------------------------------------------------------- /vendor/github.com/morikuni/aec/sample.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vmg/skeema/main/vendor/github.com/morikuni/aec/sample.gif -------------------------------------------------------------------------------- /workspace/testdata/simple/.skeema: -------------------------------------------------------------------------------- 1 | schema=product 2 | default-character-set=latin1 3 | default-collation=latin1_swedish_ci 4 | -------------------------------------------------------------------------------- /applier/testdata/schemaerror/.skeema: -------------------------------------------------------------------------------- 1 | host=placeholder 2 | host-wrapper='cat testdata/.scratch/applier-hosts' 3 | password=fakepw 4 | -------------------------------------------------------------------------------- /applier/testdata/sqlerror/.skeema: -------------------------------------------------------------------------------- 1 | host=placeholder 2 | host-wrapper='cat testdata/.scratch/applier-hosts' 3 | password=fakepw 4 | -------------------------------------------------------------------------------- /dumper/testdata/golden/invalid.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE borked1 ( 2 | id int, 3 | lol I dunno, 4 | just make me a good table pls); 5 | -------------------------------------------------------------------------------- /fs/testdata/cfgsymlinks2/product/.skeema: -------------------------------------------------------------------------------- 1 | schema=product 2 | default-character-set=latin1 3 | default-collation=latin1_swedish_ci 4 | -------------------------------------------------------------------------------- /fs/testdata/sqlsymlinks/product/.skeema: -------------------------------------------------------------------------------- 1 | schema=product 2 | default-character-set=latin1 3 | default-collation=latin1_swedish_ci 4 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/go-digest/.mailmap: -------------------------------------------------------------------------------- 1 | Stephen J Day 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/lint/go.mod: -------------------------------------------------------------------------------- 1 | module golang.org/x/lint 2 | 3 | require golang.org/x/tools v0.0.0-20190311212946-11955173bddd 4 | -------------------------------------------------------------------------------- /applier/testdata/named/conflict1/.skeema: -------------------------------------------------------------------------------- 1 | # This dir sets a schema name in .skeema that differs from one in tables.sql 2 | schema=conflict1 -------------------------------------------------------------------------------- /applier/testdata/named/multi/tables.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE multi1.tbl1 (id int unsigned); 2 | CREATE TABLE multi2.tbl2 (id int unsigned); 3 | -------------------------------------------------------------------------------- /fs/testdata/sqlsymlinks/analytics/.skeema: -------------------------------------------------------------------------------- 1 | schema=analytics 2 | default-character-set=latin1 3 | default-collation=latin1_swedish_ci 4 | -------------------------------------------------------------------------------- /testdata/golden/pull1/mydb/analytics/.skeema: -------------------------------------------------------------------------------- 1 | schema=analytics 2 | default-character-set=utf8 3 | default-collation=utf8_swedish_ci 4 | -------------------------------------------------------------------------------- /testdata/golden/pull1/mydb/archives/.skeema: -------------------------------------------------------------------------------- 1 | schema=archives 2 | default-character-set=utf8mb4 3 | default-collation=utf8mb4_general_ci 4 | -------------------------------------------------------------------------------- /applier/testdata/named/namedonly/.skeema: -------------------------------------------------------------------------------- 1 | # this sets a schema name here, but it is matched in tables.sql, so no error 2 | schema=namedonly 3 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/pull1/mydb/analytics/.skeema: -------------------------------------------------------------------------------- 1 | schema=analytics 2 | default-character-set=utf8 3 | default-collation=utf8_swedish_ci 4 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/pull1/mydb/analytics/.skeema: -------------------------------------------------------------------------------- 1 | schema=analytics 2 | default-character-set=utf8 3 | default-collation=utf8_swedish_ci 4 | -------------------------------------------------------------------------------- /applier/testdata/named/conflict2/.skeema: -------------------------------------------------------------------------------- 1 | # This dir doesn't set a schema name here, but tables.sql includes CREATEs 2 | # without a database name -------------------------------------------------------------------------------- /applier/testdata/named/conflict2/tables.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE tbl1 (id int unsigned); 2 | USE xconflict2 3 | CREATE TABLE tbl2 (id int unsigned); 4 | -------------------------------------------------------------------------------- /applier/testdata/named/conflict3/tables.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE conflict3.tbl1 (id int unsigned); 2 | CREATE TABLE xconflict3.tbl2 (id int unsigned); 3 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/pull1/mydb/analytics/.skeema: -------------------------------------------------------------------------------- 1 | schema=analytics 2 | default-character-set=utf8 3 | default-collation=utf8_swedish_ci 4 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/pull1/mydb/archives/.skeema: -------------------------------------------------------------------------------- 1 | schema=archives 2 | default-character-set=utf8mb4 3 | default-collation=utf8mb4_general_ci 4 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/pull1/mydb/archives/.skeema: -------------------------------------------------------------------------------- 1 | schema=archives 2 | default-character-set=utf8mb4 3 | default-collation=utf8mb4_general_ci 4 | -------------------------------------------------------------------------------- /tools.go: -------------------------------------------------------------------------------- 1 | // +build tools 2 | 3 | package main 4 | 5 | import ( 6 | _ "github.com/mattn/goveralls" 7 | _ "golang.org/x/lint/golint" 8 | ) 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/go.mod: -------------------------------------------------------------------------------- 1 | module golang.org/x/term 2 | 3 | go 1.11 4 | 5 | require golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 6 | -------------------------------------------------------------------------------- /linter/testdata/namedok1/tables.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE foo.tbl1 (id int unsigned NOT NULL); 2 | use bar 3 | CREATE TABLE tbl2 (id int unsigned NOT NULL); 4 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/pull1/mydb/archives/.skeema: -------------------------------------------------------------------------------- 1 | schema=archives 2 | default-character-set=utf8mb4 3 | default-collation=utf8mb4_general_ci 4 | -------------------------------------------------------------------------------- /testdata/golden/init/mydb/.skeema: -------------------------------------------------------------------------------- 1 | [production] 2 | host=127.0.0.1 3 | port={DYNAMICALLY INSERTED BY TEST} 4 | flavor={DYNAMICALLY INSERTED BY TEST} 5 | -------------------------------------------------------------------------------- /testdata/golden/pull1/mydb/.skeema: -------------------------------------------------------------------------------- 1 | [production] 2 | host=127.0.0.1 3 | port={DYNAMICALLY INSERTED BY TEST} 4 | flavor={DYNAMICALLY INSERTED BY TEST} 5 | -------------------------------------------------------------------------------- /applier/testdata/multi/shards/foo.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE foo ( 2 | id int unsigned NOT NULL, 3 | PRIMARY KEY (id) 4 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 5 | -------------------------------------------------------------------------------- /applier/testdata/simple/one/foo.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE foo ( 2 | id int unsigned NOT NULL, 3 | PRIMARY KEY (id) 4 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 5 | -------------------------------------------------------------------------------- /applier/testdata/simple/two/bar.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE bar ( 2 | name varchar(30) NOT NULL, 3 | PRIMARY KEY (name) 4 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 5 | -------------------------------------------------------------------------------- /applier/testdata/sqlerror/one/foo.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE foo ( 2 | id int unsigned NOT NULL, 3 | PRIMARY KEY (id) 4 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 5 | -------------------------------------------------------------------------------- /linter/testdata/namedok2/tables.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE foo.tbl1 (id int unsigned NOT NULL); 2 | 3 | use bar 4 | CREATE TABLE tbl2 (id int unsigned NOT NULL); 5 | -------------------------------------------------------------------------------- /testdata/golden/autoinc/mydb/.skeema: -------------------------------------------------------------------------------- 1 | [production] 2 | host=127.0.0.1 3 | port={DYNAMICALLY INSERTED BY TEST} 4 | flavor={DYNAMICALLY INSERTED BY TEST} 5 | -------------------------------------------------------------------------------- /testdata/golden/routines/mydb/.skeema: -------------------------------------------------------------------------------- 1 | [production] 2 | host=127.0.0.1 3 | port={DYNAMICALLY INSERTED BY TEST} 4 | flavor={DYNAMICALLY INSERTED BY TEST} 5 | -------------------------------------------------------------------------------- /testdata/golden/unsupported/mydb/.skeema: -------------------------------------------------------------------------------- 1 | [production] 2 | host=127.0.0.1 3 | port={DYNAMICALLY INSERTED BY TEST} 4 | flavor={DYNAMICALLY INSERTED BY TEST} 5 | -------------------------------------------------------------------------------- /applier/testdata/multi/shards/bar.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE bar ( 2 | name varchar(30) NOT NULL, 3 | PRIMARY KEY (name) 4 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 5 | -------------------------------------------------------------------------------- /applier/testdata/schemaerror/one/foo.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE foo ( 2 | id int unsigned NOT NULL, 3 | PRIMARY KEY (id) 4 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 5 | -------------------------------------------------------------------------------- /applier/testdata/schemaerror/two/bar.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE bar ( 2 | name varchar(30) NOT NULL, 3 | PRIMARY KEY (name) 4 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 5 | -------------------------------------------------------------------------------- /applier/testdata/sqlerror/two/bar.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE bar ( 2 | name varchar(30) NOT NULL, 3 | PRIMARY KEY (name) 4 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 5 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/init/mydb/.skeema: -------------------------------------------------------------------------------- 1 | [production] 2 | host=127.0.0.1 3 | port={DYNAMICALLY INSERTED BY TEST} 4 | flavor={DYNAMICALLY INSERTED BY TEST} 5 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/pull1/mydb/.skeema: -------------------------------------------------------------------------------- 1 | [production] 2 | host=127.0.0.1 3 | port={DYNAMICALLY INSERTED BY TEST} 4 | flavor={DYNAMICALLY INSERTED BY TEST} 5 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/autoinc/mydb/.skeema: -------------------------------------------------------------------------------- 1 | [production] 2 | host=127.0.0.1 3 | port={DYNAMICALLY INSERTED BY TEST} 4 | flavor={DYNAMICALLY INSERTED BY TEST} 5 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/init/mydb/.skeema: -------------------------------------------------------------------------------- 1 | [production] 2 | host=127.0.0.1 3 | port={DYNAMICALLY INSERTED BY TEST} 4 | flavor={DYNAMICALLY INSERTED BY TEST} 5 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/pull1/mydb/.skeema: -------------------------------------------------------------------------------- 1 | [production] 2 | host=127.0.0.1 3 | port={DYNAMICALLY INSERTED BY TEST} 4 | flavor={DYNAMICALLY INSERTED BY TEST} 5 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/routines/mydb/.skeema: -------------------------------------------------------------------------------- 1 | [production] 2 | host=127.0.0.1 3 | port={DYNAMICALLY INSERTED BY TEST} 4 | flavor={DYNAMICALLY INSERTED BY TEST} 5 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/autoinc/mydb/.skeema: -------------------------------------------------------------------------------- 1 | [production] 2 | host=127.0.0.1 3 | port={DYNAMICALLY INSERTED BY TEST} 4 | flavor={DYNAMICALLY INSERTED BY TEST} 5 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/init/mydb/.skeema: -------------------------------------------------------------------------------- 1 | [production] 2 | host=127.0.0.1 3 | port={DYNAMICALLY INSERTED BY TEST} 4 | flavor={DYNAMICALLY INSERTED BY TEST} 5 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/pull1/mydb/.skeema: -------------------------------------------------------------------------------- 1 | [production] 2 | host=127.0.0.1 3 | port={DYNAMICALLY INSERTED BY TEST} 4 | flavor={DYNAMICALLY INSERTED BY TEST} 5 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/routines/mydb/.skeema: -------------------------------------------------------------------------------- 1 | [production] 2 | host=127.0.0.1 3 | port={DYNAMICALLY INSERTED BY TEST} 4 | flavor={DYNAMICALLY INSERTED BY TEST} 5 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/runc/libcontainer/user/MAINTAINERS: -------------------------------------------------------------------------------- 1 | Tianon Gravi (@tianon) 2 | Aleksa Sarai (@cyphar) 3 | -------------------------------------------------------------------------------- /workspace/testdata/tempschema1.sql: -------------------------------------------------------------------------------- 1 | use _skeema_tmp; 2 | CREATE TABLE bar (id int unsigned NOT NULL PRIMARY KEY); 3 | INSERT INTO bar (id) VALUES (1), (22), (333); -------------------------------------------------------------------------------- /applier/testdata/schemaerror/four/four.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE four ( 2 | name varchar(30) NOT NULL, 3 | PRIMARY KEY (name) 4 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 5 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/autoinc/mydb/.skeema: -------------------------------------------------------------------------------- 1 | [production] 2 | host=127.0.0.1 3 | port={DYNAMICALLY INSERTED BY TEST} 4 | flavor={DYNAMICALLY INSERTED BY TEST} 5 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/routines/mydb/.skeema: -------------------------------------------------------------------------------- 1 | [production] 2 | host=127.0.0.1 3 | port={DYNAMICALLY INSERTED BY TEST} 4 | flavor={DYNAMICALLY INSERTED BY TEST} 5 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/unsupported/mydb/.skeema: -------------------------------------------------------------------------------- 1 | [production] 2 | host=127.0.0.1 3 | port={DYNAMICALLY INSERTED BY TEST} 4 | flavor={DYNAMICALLY INSERTED BY TEST} 5 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/unsupported/mydb/.skeema: -------------------------------------------------------------------------------- 1 | [production] 2 | host=127.0.0.1 3 | port={DYNAMICALLY INSERTED BY TEST} 4 | flavor={DYNAMICALLY INSERTED BY TEST} 5 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/goveralls/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/mattn/goveralls 2 | 3 | go 1.11 4 | 5 | require golang.org/x/tools v0.0.0-20200522201501-cb1345f3a375 6 | -------------------------------------------------------------------------------- /applier/testdata/schemaerror/three/three.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE three ( 2 | name varchar(30) NOT NULL, 3 | PRIMARY KEY (name) 4 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 5 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/unsupported/mydb/.skeema: -------------------------------------------------------------------------------- 1 | [production] 2 | host=127.0.0.1 3 | port={DYNAMICALLY INSERTED BY TEST} 4 | flavor={DYNAMICALLY INSERTED BY TEST} 5 | -------------------------------------------------------------------------------- /testdata/golden/autoinc/mydb/product/.skeema: -------------------------------------------------------------------------------- 1 | schema=product 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden/ignore/mydb/product/.skeema: -------------------------------------------------------------------------------- 1 | schema=product 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden/init/mydb/product/.skeema: -------------------------------------------------------------------------------- 1 | schema=product 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden/pull1/mydb/product/.skeema: -------------------------------------------------------------------------------- 1 | schema=product 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/goveralls/renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [ 3 | "config:base" 4 | ], 5 | "schedule": "before 3am on the first day of the month" 6 | } 7 | -------------------------------------------------------------------------------- /linter/testdata/validcfg/nopk.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE nopk ( /* annotations:pk */ 2 | id int unsigned NOT NULL, 3 | name varchar(30) 4 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; 5 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/init/mydb/product/.skeema: -------------------------------------------------------------------------------- 1 | schema=product 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/init/mydb/product/.skeema: -------------------------------------------------------------------------------- 1 | schema=product 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden/autoinc/mydb/analytics/.skeema: -------------------------------------------------------------------------------- 1 | schema=analytics 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden/ignore/mydb/analytics/.skeema: -------------------------------------------------------------------------------- 1 | schema=analytics 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden/init/mydb/analytics/.skeema: -------------------------------------------------------------------------------- 1 | schema=analytics 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden/routines/mydb/analytics/.skeema: -------------------------------------------------------------------------------- 1 | schema=analytics 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden/routines/mydb/product/.skeema: -------------------------------------------------------------------------------- 1 | schema=product 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden/unsupported/mydb/product/.skeema: -------------------------------------------------------------------------------- 1 | schema=product 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /vendor/github.com/Azure/go-ansiterm/context.go: -------------------------------------------------------------------------------- 1 | package ansiterm 2 | 3 | type ansiContext struct { 4 | currentChar byte 5 | paramBuffer []byte 6 | interBuffer []byte 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/go-sql-driver/mysql/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .DS_Store? 3 | ._* 4 | .Spotlight-V100 5 | .Trashes 6 | Icon? 7 | ehthumbs.db 8 | Thumbs.db 9 | .idea 10 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/ignore/mydb/product/.skeema: -------------------------------------------------------------------------------- 1 | schema=product 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/init/mydb/product/.skeema: -------------------------------------------------------------------------------- 1 | schema=product 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/pull1/mydb/product/.skeema: -------------------------------------------------------------------------------- 1 | schema=product 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/autoinc/mydb/product/.skeema: -------------------------------------------------------------------------------- 1 | schema=product 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/ignore/mydb/product/.skeema: -------------------------------------------------------------------------------- 1 | schema=product 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/init/mydb/analytics/.skeema: -------------------------------------------------------------------------------- 1 | schema=analytics 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/pull1/mydb/product/.skeema: -------------------------------------------------------------------------------- 1 | schema=product 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/routines/mydb/product/.skeema: -------------------------------------------------------------------------------- 1 | schema=product 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/autoinc/mydb/product/.skeema: -------------------------------------------------------------------------------- 1 | schema=product 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/ignore/mydb/product/.skeema: -------------------------------------------------------------------------------- 1 | schema=product 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/init/mydb/analytics/.skeema: -------------------------------------------------------------------------------- 1 | schema=analytics 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/pull1/mydb/product/.skeema: -------------------------------------------------------------------------------- 1 | schema=product 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/routines/mydb/product/.skeema: -------------------------------------------------------------------------------- 1 | schema=product 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden/unsupported/mydb/analytics/.skeema: -------------------------------------------------------------------------------- 1 | schema=analytics 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/autoinc/mydb/analytics/.skeema: -------------------------------------------------------------------------------- 1 | schema=analytics 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/autoinc/mydb/product/.skeema: -------------------------------------------------------------------------------- 1 | schema=product 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/ignore/mydb/analytics/.skeema: -------------------------------------------------------------------------------- 1 | schema=analytics 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/init/mydb/analytics/.skeema: -------------------------------------------------------------------------------- 1 | schema=analytics 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/routines/mydb/product/.skeema: -------------------------------------------------------------------------------- 1 | schema=product 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/unsupported/mydb/product/.skeema: -------------------------------------------------------------------------------- 1 | schema=product 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/autoinc/mydb/analytics/.skeema: -------------------------------------------------------------------------------- 1 | schema=analytics 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/ignore/mydb/analytics/.skeema: -------------------------------------------------------------------------------- 1 | schema=analytics 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/routines/mydb/analytics/.skeema: -------------------------------------------------------------------------------- 1 | schema=analytics 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/unsupported/mydb/product/.skeema: -------------------------------------------------------------------------------- 1 | schema=product 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/autoinc/mydb/analytics/.skeema: -------------------------------------------------------------------------------- 1 | schema=analytics 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/ignore/mydb/analytics/.skeema: -------------------------------------------------------------------------------- 1 | schema=analytics 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/routines/mydb/analytics/.skeema: -------------------------------------------------------------------------------- 1 | schema=analytics 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/unsupported/mydb/product/.skeema: -------------------------------------------------------------------------------- 1 | schema=product 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/routines/mydb/analytics/.skeema: -------------------------------------------------------------------------------- 1 | schema=analytics 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/unsupported/mydb/analytics/.skeema: -------------------------------------------------------------------------------- 1 | schema=analytics 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/unsupported/mydb/analytics/.skeema: -------------------------------------------------------------------------------- 1 | schema=analytics 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/unsupported/mydb/analytics/.skeema: -------------------------------------------------------------------------------- 1 | schema=analytics 2 | default-character-set={DYNAMICALLY INSERTED BY TEST} 3 | default-collation={DYNAMICALLY INSERTED BY TEST} 4 | -------------------------------------------------------------------------------- /testdata/golden/pull1/mydb/archives/foo.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `foo` ( 2 | `id` int(10) unsigned NOT NULL AUTO_INCREMENT, 3 | PRIMARY KEY (`id`) 4 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; 5 | -------------------------------------------------------------------------------- /vendor/github.com/moby/sys/mount/unmount_unsupported.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package mount 4 | 5 | func unmount(target string, flag int) error { 6 | panic("Not implemented") 7 | } 8 | -------------------------------------------------------------------------------- /testdata/golden/ignore/mydb/.skeema: -------------------------------------------------------------------------------- 1 | [production] 2 | host=127.0.0.1 3 | port={DYNAMICALLY INSERTED BY TEST} 4 | flavor={DYNAMICALLY INSERTED BY TEST} 5 | ignore-schema=^archives$ 6 | ignore-table=^_ -------------------------------------------------------------------------------- /linter/testdata/validcfg/fine.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `fine` ( 2 | `id` int(10) unsigned NOT NULL, 3 | `name` varchar(30) DEFAULT NULL, 4 | PRIMARY KEY (`id`) 5 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 -------------------------------------------------------------------------------- /testdata/golden-mariadb102/pull1/mydb/archives/foo.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `foo` ( 2 | `id` int(10) unsigned NOT NULL AUTO_INCREMENT, 3 | PRIMARY KEY (`id`) 4 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; 5 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/pull1/mydb/archives/foo.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `foo` ( 2 | `id` int(10) unsigned NOT NULL AUTO_INCREMENT, 3 | PRIMARY KEY (`id`) 4 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; 5 | -------------------------------------------------------------------------------- /vendor/github.com/moby/sys/mountinfo/mountinfo_windows.go: -------------------------------------------------------------------------------- 1 | package mountinfo 2 | 3 | func parseMountTable(f FilterFunc) ([]*Info, error) { 4 | // Do NOT return an error! 5 | return nil, nil 6 | } 7 | -------------------------------------------------------------------------------- /fs/testdata/named3/tables.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE glorp.two ( 2 | id int unsigned NOT NULL, 3 | PRIMARY KEY (id) 4 | ); 5 | CREATE TABLE bar.three ( 6 | id int unsigned NOT NULL, 7 | PRIMARY KEY (id) 8 | ); 9 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/ignore/mydb/.skeema: -------------------------------------------------------------------------------- 1 | [production] 2 | host=127.0.0.1 3 | port={DYNAMICALLY INSERTED BY TEST} 4 | flavor={DYNAMICALLY INSERTED BY TEST} 5 | ignore-schema=^archives$ 6 | ignore-table=^_ -------------------------------------------------------------------------------- /testdata/golden-mysql55/ignore/mydb/.skeema: -------------------------------------------------------------------------------- 1 | [production] 2 | host=127.0.0.1 3 | port={DYNAMICALLY INSERTED BY TEST} 4 | flavor={DYNAMICALLY INSERTED BY TEST} 5 | ignore-schema=^archives$ 6 | ignore-table=^_ -------------------------------------------------------------------------------- /testdata/golden-mysql80/ignore/mydb/.skeema: -------------------------------------------------------------------------------- 1 | [production] 2 | host=127.0.0.1 3 | port={DYNAMICALLY INSERTED BY TEST} 4 | flavor={DYNAMICALLY INSERTED BY TEST} 5 | ignore-schema=^archives$ 6 | ignore-table=^_ -------------------------------------------------------------------------------- /linter/testdata/validcfg/badengine.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE badengine ( 2 | id int unsigned NOT NULL, 3 | name varchar(30), 4 | PRIMARY KEY (id) 5 | ) ENGINE=MEMORY DEFAULT CHARSET=utf8mb4 /* annotations:engine */; 6 | -------------------------------------------------------------------------------- /vendor/github.com/jmoiron/sqlx/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/jmoiron/sqlx 2 | 3 | require ( 4 | github.com/go-sql-driver/mysql v1.4.0 5 | github.com/lib/pq v1.0.0 6 | github.com/mattn/go-sqlite3 v1.9.0 7 | ) 8 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/errors/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go_import_path: github.com/pkg/errors 3 | go: 4 | - 1.11.x 5 | - 1.12.x 6 | - 1.13.x 7 | - tip 8 | 9 | script: 10 | - make check 11 | -------------------------------------------------------------------------------- /linter/testdata/validcfg/multibad.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE multibad ( /* annotations:pk */ 2 | id int unsigned NOT NULL, 3 | name varchar(30) 4 | ) ENGINE=MEMORY DEFAULT CHARSET=latin1 /* annotations: charset, engine */; 5 | -------------------------------------------------------------------------------- /vendor/github.com/moby/sys/mount/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/moby/sys/mount 2 | 3 | go 1.14 4 | 5 | require ( 6 | github.com/moby/sys/mountinfo v0.1.0 7 | golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae 8 | ) 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sync/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/github.com/skeema/mybase/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/skeema/mybase 2 | 3 | go 1.14 4 | 5 | require ( 6 | github.com/mitchellh/go-wordwrap v1.0.0 7 | golang.org/x/term v0.0.0-20201210144234-2321bbc49cbf 8 | ) 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sync/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /applier/testdata/named/namedonly/tables.sql: -------------------------------------------------------------------------------- 1 | use xnamedonly; 2 | CREATE TABLE namedonly.tbl1 (id int unsigned); 3 | use namedonly; 4 | CREATE TABLE namedonly.tbl2 (id int unsigned); 5 | CREATE TABLE tbl3 (id int unsigned); 6 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/pull1/mydb/archives/foo.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `foo` ( 2 | `id` int(10) unsigned NOT NULL AUTO_INCREMENT, 3 | PRIMARY KEY (`id`) 4 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; 5 | -------------------------------------------------------------------------------- /vendor/github.com/golang/protobuf/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /vendor/github.com/golang/protobuf/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_appengine.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | ) 8 | 9 | func checkIfTerminal(w io.Writer) bool { 10 | return true 11 | } 12 | -------------------------------------------------------------------------------- /dumper/testdata/input/routine.sql: -------------------------------------------------------------------------------- 1 | DELIMITER // 2 | create definer=`root`@`localhost` function `routine1`(a int, b int) returns int(11) deterministic 3 | BEGIN 4 | # mid-body comment 5 | return a * b; 6 | end// 7 | delimiter ; 8 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/syscall.go: -------------------------------------------------------------------------------- 1 | package winio 2 | 3 | //go:generate go run $GOROOT/src/syscall/mksyscall_windows.go -output zsyscall_windows.go file.go pipe.go sd.go fileinfo.go privilege.go backup.go hvsock.go 4 | -------------------------------------------------------------------------------- /fs/testdata/sqlsymlinks/analytics/rollups.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `rollups` ( 2 | `metric_id` int(10) unsigned NOT NULL, 3 | `value` bigint(20) DEFAULT NULL, 4 | PRIMARY KEY (`metric_id`) 5 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 6 | -------------------------------------------------------------------------------- /testdata/golden/ignore/mydb/analytics/rollups.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `rollups` ( 2 | `metric_id` int(10) unsigned NOT NULL, 3 | `value` bigint(20) DEFAULT NULL, 4 | PRIMARY KEY (`metric_id`) 5 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 6 | -------------------------------------------------------------------------------- /testdata/golden/init/mydb/analytics/rollups.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `rollups` ( 2 | `metric_id` int(10) unsigned NOT NULL, 3 | `value` bigint(20) DEFAULT NULL, 4 | PRIMARY KEY (`metric_id`) 5 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 6 | -------------------------------------------------------------------------------- /testdata/golden/pull1/mydb/analytics/rollups.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `rollups` ( 2 | `metric_id` int(10) unsigned NOT NULL, 3 | `value` bigint(20) DEFAULT NULL, 4 | PRIMARY KEY (`metric_id`) 5 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 6 | -------------------------------------------------------------------------------- /testdata/golden/pull1/mydb/analytics/widget_counts.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `widget_counts` ( 2 | `name` varchar(40) NOT NULL, 3 | `cnt` int(10) unsigned DEFAULT NULL, 4 | PRIMARY KEY (`name`) 5 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 6 | -------------------------------------------------------------------------------- /testdata/golden/routines/mydb/product/routine1.sql: -------------------------------------------------------------------------------- 1 | DELIMITER // 2 | CREATE DEFINER=`root`@`localhost` FUNCTION `routine1`(a int, 3 | b int) RETURNS int(11) 4 | DETERMINISTIC 5 | BEGIN 6 | return a * b; 7 | END// 8 | DELIMITER ; 9 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_no_terminal.go: -------------------------------------------------------------------------------- 1 | // +build js nacl plan9 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | ) 8 | 9 | func checkIfTerminal(w io.Writer) bool { 10 | return false 11 | } 12 | -------------------------------------------------------------------------------- /dumper/testdata/golden/routine.sql: -------------------------------------------------------------------------------- 1 | DELIMITER // 2 | CREATE DEFINER=`root`@`localhost` FUNCTION `routine1`(a int, b int) RETURNS int(11) 3 | DETERMINISTIC 4 | BEGIN 5 | # mid-body comment 6 | return a * b; 7 | end// 8 | delimiter ; 9 | -------------------------------------------------------------------------------- /testdata/golden/autoinc/mydb/analytics/rollups.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `rollups` ( 2 | `metric_id` int(10) unsigned NOT NULL, 3 | `value` bigint(20) DEFAULT NULL, 4 | PRIMARY KEY (`metric_id`) 5 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 6 | -------------------------------------------------------------------------------- /testdata/golden/routines/mydb/analytics/rollups.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `rollups` ( 2 | `metric_id` int(10) unsigned NOT NULL, 3 | `value` bigint(20) DEFAULT NULL, 4 | PRIMARY KEY (`metric_id`) 5 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 6 | -------------------------------------------------------------------------------- /testdata/golden/unsupported/mydb/analytics/rollups.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `rollups` ( 2 | `metric_id` int(10) unsigned NOT NULL, 3 | `value` bigint(20) DEFAULT NULL, 4 | PRIMARY KEY (`metric_id`) 5 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 6 | -------------------------------------------------------------------------------- /vendor/github.com/containerd/continuity/sysx/README.md: -------------------------------------------------------------------------------- 1 | This package is for internal use only. It is intended to only have 2 | temporary changes before they are upstreamed to golang.org/x/sys/ 3 | (a.k.a. https://github.com/golang/sys). 4 | -------------------------------------------------------------------------------- /vendor/github.com/moby/sys/mount/mounter_unsupported.go: -------------------------------------------------------------------------------- 1 | // +build !linux,!freebsd freebsd,!cgo 2 | 3 | package mount 4 | 5 | func mount(device, target, mType string, flag uintptr, data string) error { 6 | panic("Not implemented") 7 | } 8 | -------------------------------------------------------------------------------- /dumper/testdata/input/multi.sql: -------------------------------------------------------------------------------- 1 | Create table multi1 ( 2 | name varchar(30) 3 | ) character set latin1; 4 | 5 | CREATE TABLE multi2 (id int unsigned) CHARACTER set latin1; CREATE TABLE multi3( 6 | whatever char(3)) default charset=latin1 7 | ; -------------------------------------------------------------------------------- /testdata/golden-mariadb102/init/mydb/analytics/rollups.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `rollups` ( 2 | `metric_id` int(10) unsigned NOT NULL, 3 | `value` bigint(20) DEFAULT NULL, 4 | PRIMARY KEY (`metric_id`) 5 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 6 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/pull1/mydb/analytics/rollups.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `rollups` ( 2 | `metric_id` int(10) unsigned NOT NULL, 3 | `value` bigint(20) DEFAULT NULL, 4 | PRIMARY KEY (`metric_id`) 5 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 6 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/autoinc/mydb/analytics/rollups.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `rollups` ( 2 | `metric_id` int(10) unsigned NOT NULL, 3 | `value` bigint(20) DEFAULT NULL, 4 | PRIMARY KEY (`metric_id`) 5 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 6 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/ignore/mydb/analytics/rollups.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `rollups` ( 2 | `metric_id` int(10) unsigned NOT NULL, 3 | `value` bigint(20) DEFAULT NULL, 4 | PRIMARY KEY (`metric_id`) 5 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 6 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/init/mydb/analytics/rollups.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `rollups` ( 2 | `metric_id` int(10) unsigned NOT NULL, 3 | `value` bigint(20) DEFAULT NULL, 4 | PRIMARY KEY (`metric_id`) 5 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 6 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/pull1/mydb/analytics/rollups.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `rollups` ( 2 | `metric_id` int(10) unsigned NOT NULL, 3 | `value` bigint(20) DEFAULT NULL, 4 | PRIMARY KEY (`metric_id`) 5 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 6 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/pull1/mydb/analytics/widget_counts.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `widget_counts` ( 2 | `name` varchar(40) NOT NULL, 3 | `cnt` int(10) unsigned DEFAULT NULL, 4 | PRIMARY KEY (`name`) 5 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 6 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/routines/mydb/analytics/rollups.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `rollups` ( 2 | `metric_id` int(10) unsigned NOT NULL, 3 | `value` bigint(20) DEFAULT NULL, 4 | PRIMARY KEY (`metric_id`) 5 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 6 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/routines/mydb/product/routine1.sql: -------------------------------------------------------------------------------- 1 | DELIMITER // 2 | CREATE DEFINER=`root`@`localhost` FUNCTION `routine1`(a int, 3 | b int) RETURNS int(11) 4 | DETERMINISTIC 5 | BEGIN 6 | return a * b; 7 | END// 8 | DELIMITER ; 9 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/autoinc/mydb/analytics/rollups.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `rollups` ( 2 | `metric_id` int(10) unsigned NOT NULL, 3 | `value` bigint(20) DEFAULT NULL, 4 | PRIMARY KEY (`metric_id`) 5 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 6 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/ignore/mydb/analytics/rollups.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `rollups` ( 2 | `metric_id` int(10) unsigned NOT NULL, 3 | `value` bigint(20) DEFAULT NULL, 4 | PRIMARY KEY (`metric_id`) 5 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 6 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/init/mydb/analytics/rollups.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `rollups` ( 2 | `metric_id` int(10) unsigned NOT NULL, 3 | `value` bigint(20) DEFAULT NULL, 4 | PRIMARY KEY (`metric_id`) 5 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 6 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/pull1/mydb/analytics/rollups.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `rollups` ( 2 | `metric_id` int(10) unsigned NOT NULL, 3 | `value` bigint(20) DEFAULT NULL, 4 | PRIMARY KEY (`metric_id`) 5 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 6 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/pull1/mydb/analytics/widget_counts.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `widget_counts` ( 2 | `name` varchar(40) NOT NULL, 3 | `cnt` int(10) unsigned DEFAULT NULL, 4 | PRIMARY KEY (`name`) 5 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 6 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/routines/mydb/analytics/rollups.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `rollups` ( 2 | `metric_id` int(10) unsigned NOT NULL, 3 | `value` bigint(20) DEFAULT NULL, 4 | PRIMARY KEY (`metric_id`) 5 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 6 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/routines/mydb/product/routine1.sql: -------------------------------------------------------------------------------- 1 | DELIMITER // 2 | CREATE DEFINER=`root`@`localhost` FUNCTION `routine1`(a int, 3 | b int) RETURNS int(11) 4 | DETERMINISTIC 5 | BEGIN 6 | return a * b; 7 | END// 8 | DELIMITER ; 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/go.sum: -------------------------------------------------------------------------------- 1 | golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 h1:nxC68pudNYkKU6jWhgrqdreuFiOQWj1Fs7T3VrH4Pjw= 2 | golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 3 | -------------------------------------------------------------------------------- /fs/testdata/named1/tables.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE one ( 2 | id int unsigned NOT NULL, 3 | PRIMARY KEY (id) 4 | ); 5 | 6 | use glorp; 7 | 8 | use bar; 9 | CREATE TABLE two ( 10 | id int unsigned NOT NULL, 11 | PRIMARY KEY (id) 12 | ); 13 | 14 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/autoinc/mydb/analytics/rollups.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `rollups` ( 2 | `metric_id` int(10) unsigned NOT NULL, 3 | `value` bigint(20) DEFAULT NULL, 4 | PRIMARY KEY (`metric_id`) 5 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 6 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/ignore/mydb/analytics/rollups.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `rollups` ( 2 | `metric_id` int(10) unsigned NOT NULL, 3 | `value` bigint(20) DEFAULT NULL, 4 | PRIMARY KEY (`metric_id`) 5 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 6 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/pull1/mydb/analytics/widget_counts.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `widget_counts` ( 2 | `name` varchar(40) NOT NULL, 3 | `cnt` int(10) unsigned DEFAULT NULL, 4 | PRIMARY KEY (`name`) 5 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 6 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/routines/mydb/analytics/rollups.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `rollups` ( 2 | `metric_id` int(10) unsigned NOT NULL, 3 | `value` bigint(20) DEFAULT NULL, 4 | PRIMARY KEY (`metric_id`) 5 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 6 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/routines/mydb/product/routine1.sql: -------------------------------------------------------------------------------- 1 | DELIMITER // 2 | CREATE DEFINER=`root`@`localhost` FUNCTION `routine1`(a int, 3 | b int) RETURNS int(11) 4 | DETERMINISTIC 5 | BEGIN 6 | return a * b; 7 | END// 8 | DELIMITER ; 9 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/unsupported/mydb/analytics/rollups.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `rollups` ( 2 | `metric_id` int(10) unsigned NOT NULL, 3 | `value` bigint(20) DEFAULT NULL, 4 | PRIMARY KEY (`metric_id`) 5 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 6 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/unsupported/mydb/analytics/rollups.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `rollups` ( 2 | `metric_id` int(10) unsigned NOT NULL, 3 | `value` bigint(20) DEFAULT NULL, 4 | PRIMARY KEY (`metric_id`) 5 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 6 | -------------------------------------------------------------------------------- /fs/testdata/named4/tables.sql: -------------------------------------------------------------------------------- 1 | DELIMITER ; 2 | use glorp 3 | CREATE TABLE two ( 4 | id int unsigned NOT NULL, 5 | PRIMARY KEY (id) 6 | ); 7 | 8 | use bar 9 | CREATE TABLE three ( 10 | id int unsigned NOT NULL, 11 | PRIMARY KEY (id) 12 | ); 13 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/unsupported/mydb/analytics/rollups.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `rollups` ( 2 | `metric_id` int(10) unsigned NOT NULL, 3 | `value` bigint(20) DEFAULT NULL, 4 | PRIMARY KEY (`metric_id`) 5 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 6 | -------------------------------------------------------------------------------- /vendor/github.com/alecthomas/participle/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/alecthomas/participle 2 | 3 | require ( 4 | github.com/davecgh/go-spew v1.1.1 // indirect 5 | github.com/pmezard/go-difflib v1.0.0 // indirect 6 | github.com/stretchr/testify v1.2.2 7 | ) 8 | -------------------------------------------------------------------------------- /dumper/testdata/golden/fine.sql: -------------------------------------------------------------------------------- 1 | -- pre comment preserved 2 | CREATE TABLE `fine` ( 3 | `id` int(10) unsigned NOT NULL, 4 | `name` varchar(30) DEFAULT NULL, 5 | PRIMARY KEY (`id`) 6 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 7 | # post comment preserved 8 | 9 | -------------------------------------------------------------------------------- /dumper/testdata/input/fine.sql: -------------------------------------------------------------------------------- 1 | -- pre comment preserved 2 | CREATE TABLE `fine` ( 3 | `id` int(10) unsigned NOT NULL, 4 | `name` varchar(30) DEFAULT NULL, 5 | PRIMARY KEY (`id`) 6 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 7 | # post comment preserved 8 | 9 | -------------------------------------------------------------------------------- /vendor/github.com/Microsoft/go-winio/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/Microsoft/go-winio 2 | 3 | go 1.12 4 | 5 | require ( 6 | github.com/pkg/errors v0.8.1 7 | github.com/sirupsen/logrus v1.4.1 8 | golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3 9 | ) 10 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/api/types/swarm/runtime/gen.go: -------------------------------------------------------------------------------- 1 | //go:generate protoc -I . --gogofast_out=import_path=github.com/docker/docker/api/types/swarm/runtime:. plugin.proto 2 | 3 | package runtime // import "github.com/docker/docker/api/types/swarm/runtime" 4 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/archive/archive_other.go: -------------------------------------------------------------------------------- 1 | // +build !linux 2 | 3 | package archive // import "github.com/docker/docker/pkg/archive" 4 | 5 | func getWhiteoutConverter(format WhiteoutFormat, inUserNS bool) tarWhiteoutConverter { 6 | return nil 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/runc/libcontainer/system/sysconfig.go: -------------------------------------------------------------------------------- 1 | // +build cgo,linux 2 | 3 | package system 4 | 5 | /* 6 | #include 7 | */ 8 | import "C" 9 | 10 | func GetClockTicks() int { 11 | return int(C.sysconf(C._SC_CLK_TCK)) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/runc/libcontainer/system/unsupported.go: -------------------------------------------------------------------------------- 1 | // +build !linux 2 | 3 | package system 4 | 5 | // RunningInUserNS is a stub for non-Linux systems 6 | // Always returns false 7 | func RunningInUserNS() bool { 8 | return false 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/archive/copy_windows.go: -------------------------------------------------------------------------------- 1 | package archive // import "github.com/docker/docker/pkg/archive" 2 | 3 | import ( 4 | "path/filepath" 5 | ) 6 | 7 | func normalizePath(path string) string { 8 | return filepath.FromSlash(path) 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/goveralls/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - '1.7' 4 | - '1.8' 5 | - '1.9' 6 | - '1.10' 7 | - '1.11' 8 | - '1.12' 9 | - '1.13' 10 | before_install: 11 | - go get ./... 12 | - go install . 13 | script: 14 | - goveralls 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/asm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | #include "textflag.h" 6 | 7 | TEXT ·use(SB),NOSPLIT,$0 8 | RET 9 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/archive/copy_unix.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package archive // import "github.com/docker/docker/pkg/archive" 4 | 5 | import ( 6 | "path/filepath" 7 | ) 8 | 9 | func normalizePath(path string) string { 10 | return filepath.ToSlash(path) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/fileutils/fileutils_windows.go: -------------------------------------------------------------------------------- 1 | package fileutils // import "github.com/docker/docker/pkg/fileutils" 2 | 3 | // GetTotalUsedFds Returns the number of used File Descriptors. Not supported 4 | // on Windows. 5 | func GetTotalUsedFds() int { 6 | return -1 7 | } 8 | -------------------------------------------------------------------------------- /dumper/testdata/input/users.sql: -------------------------------------------------------------------------------- 1 | create table users ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `name` varchar(30) NOT NULL, 4 | `is_admin` tinyint(1) unsigned, 5 | `credits` decimal(9,2), 6 | primary key (`id`), 7 | unique key `name` (`name`) 8 | ) engine=innodb default charset=latin1; 9 | -------------------------------------------------------------------------------- /fs/testdata/named2/tables.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE one ( 2 | id int unsigned NOT NULL, 3 | PRIMARY KEY (id) 4 | ); 5 | 6 | CREATE TABLE glorp.two ( 7 | id int unsigned NOT NULL, 8 | PRIMARY KEY (id) 9 | ); 10 | 11 | use bar; 12 | CREATE TABLE three ( 13 | id int unsigned NOT NULL, 14 | PRIMARY KEY (id) 15 | ); 16 | -------------------------------------------------------------------------------- /testdata/foreignkey.sql: -------------------------------------------------------------------------------- 1 | use product 2 | ALTER TABLE posts 3 | ADD COLUMN byline varchar(30) NOT NULL, 4 | DROP KEY user_created, 5 | ADD KEY user_created (user_id, byline, created_at); 6 | ALTER TABLE users ADD KEY idname (id, name); 7 | ALTER TABLE posts ADD CONSTRAINT user_fk FOREIGN KEY (user_id) REFERENCES users (id); 8 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/umask_windows.go: -------------------------------------------------------------------------------- 1 | package system // import "github.com/docker/docker/pkg/system" 2 | 3 | // Umask is not supported on the windows platform. 4 | func Umask(newmask int) (oldmask int, err error) { 5 | // should not be called on cli code path 6 | return 0, ErrNotSupportedPlatform 7 | } 8 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/ast/astutil/util.go: -------------------------------------------------------------------------------- 1 | package astutil 2 | 3 | import "go/ast" 4 | 5 | // Unparen returns e with any enclosing parentheses stripped. 6 | func Unparen(e ast.Expr) ast.Expr { 7 | for { 8 | p, ok := e.(*ast.ParenExpr) 9 | if !ok { 10 | return e 11 | } 12 | e = p.X 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_unix.go: -------------------------------------------------------------------------------- 1 | // +build linux aix 2 | 3 | package logrus 4 | 5 | import "golang.org/x/sys/unix" 6 | 7 | const ioctlReadTermios = unix.TCGETS 8 | 9 | func isTerminal(fd int) bool { 10 | _, err := unix.IoctlGetTermios(fd, ioctlReadTermios) 11 | return err == nil 12 | } 13 | 14 | -------------------------------------------------------------------------------- /fs/testdata/host/db/comments.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `comments` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `user_id` bigint(20) unsigned NOT NULL, 5 | `created_at` datetime DEFAULT NULL, 6 | `body` text, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/meminfo_unsupported.go: -------------------------------------------------------------------------------- 1 | // +build !linux,!windows 2 | 3 | package system // import "github.com/docker/docker/pkg/system" 4 | 5 | // ReadMemInfo is not supported on platforms other than linux and windows. 6 | func ReadMemInfo() (*MemInfo, error) { 7 | return nil, ErrNotSupportedPlatform 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_solaris.go: -------------------------------------------------------------------------------- 1 | package logrus 2 | 3 | import ( 4 | "golang.org/x/sys/unix" 5 | ) 6 | 7 | // IsTerminal returns true if the given file descriptor is a terminal. 8 | func isTerminal(fd int) bool { 9 | _, err := unix.IoctlGetTermio(fd, unix.TCGETA) 10 | return err == nil 11 | } 12 | -------------------------------------------------------------------------------- /dumper/testdata/golden/users.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `users` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `name` varchar(30) NOT NULL, 4 | `is_admin` tinyint(1) unsigned DEFAULT NULL, 5 | `credits` decimal(9,2) DEFAULT NULL, 6 | PRIMARY KEY (`id`), 7 | UNIQUE KEY `name` (`name`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /fs/testdata/host/db/subscriptions.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `subscriptions` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `subscribed_at` int(10) unsigned DEFAULT NULL, 5 | PRIMARY KEY (`post_id`,`user_id`), 6 | KEY `user_post` (`user_id`,`post_id`) 7 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 8 | -------------------------------------------------------------------------------- /linter/testdata/validcfg/.skeema: -------------------------------------------------------------------------------- 1 | lint-pk = ERROR 2 | lint-charset = warning 3 | skip-lint-display-width 4 | 5 | allow-charset=utf8mb4 6 | allow-engine=innodb, myisam 7 | allow-definer='root'@'%',procbot@127.0.0.1 8 | 9 | ignore-table=^_ 10 | 11 | schema=whatever 12 | default-character-set=latin1 13 | default-collation=latin1_swedish_ci -------------------------------------------------------------------------------- /vendor/github.com/docker/go-units/circle.yml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | post: 3 | # install golint 4 | - go get golang.org/x/lint/golint 5 | 6 | test: 7 | pre: 8 | # run analysis before tests 9 | - go vet ./... 10 | - test -z "$(golint ./... | tee /dev/stderr)" 11 | - test -z "$(gofmt -s -l . | tee /dev/stderr)" 12 | -------------------------------------------------------------------------------- /workspace/testdata/simple/comments.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `comments` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `user_id` bigint(20) unsigned NOT NULL, 5 | `created_at` datetime DEFAULT NULL, 6 | `body` text, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /fs/testdata/cfgsymlinks2/product/comments.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `comments` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `user_id` bigint(20) unsigned NOT NULL, 5 | `created_at` datetime DEFAULT NULL, 6 | `body` text, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /fs/testdata/sqlsymlinks/product/comments.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `comments` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `user_id` bigint(20) unsigned NOT NULL, 5 | `created_at` datetime DEFAULT NULL, 6 | `body` text, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/DOCKER-LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | You can find the Docker license at the following link: 6 | https://raw.githubusercontent.com/docker/docker/HEAD/LICENSE 7 | -------------------------------------------------------------------------------- /workspace/testdata/simple/subscriptions.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `subscriptions` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `subscribed_at` int(10) unsigned DEFAULT NULL, 5 | PRIMARY KEY (`post_id`,`user_id`), 6 | KEY `user_post` (`user_id`,`post_id`) 7 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 8 | -------------------------------------------------------------------------------- /fs/testdata/sqlsymlinks/product/subscriptions.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `subscriptions` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `subscribed_at` int(10) unsigned DEFAULT NULL, 5 | PRIMARY KEY (`post_id`,`user_id`), 6 | KEY `user_post` (`user_id`,`post_id`) 7 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 8 | -------------------------------------------------------------------------------- /testdata/golden/autoinc/mydb/product/comments.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `comments` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `user_id` bigint(20) unsigned NOT NULL, 5 | `created_at` datetime DEFAULT NULL, 6 | `body` text, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden/ignore/mydb/product/comments.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `comments` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `user_id` bigint(20) unsigned NOT NULL, 5 | `created_at` datetime DEFAULT NULL, 6 | `body` text, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden/init/mydb/product/comments.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `comments` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `user_id` bigint(20) unsigned NOT NULL, 5 | `created_at` datetime DEFAULT NULL, 6 | `body` text, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden/routines/mydb/product/comments.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `comments` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `user_id` bigint(20) unsigned NOT NULL, 5 | `created_at` datetime DEFAULT NULL, 6 | `body` text, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /fs/testdata/cfgsymlinks2/product/subscriptions.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `subscriptions` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `subscribed_at` int(10) unsigned DEFAULT NULL, 5 | PRIMARY KEY (`post_id`,`user_id`), 6 | KEY `user_post` (`user_id`,`post_id`) 7 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 8 | -------------------------------------------------------------------------------- /linter/testdata/namedconflict/tables.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE uhoh (id int unsigned NOT NULL); 2 | 3 | CREATE TABLE foo.tbl1 (id int unsigned NOT NULL); 4 | 5 | # ignore-table should cause annotation for this one to be skipped! 6 | CREATE TABLE abcd.ignoreme (id int unsigned NOT NULL); 7 | 8 | use bar 9 | CREATE TABLE tbl2 (id int unsigned NOT NULL); 10 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/init/mydb/product/comments.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `comments` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `user_id` bigint(20) unsigned NOT NULL, 5 | `created_at` datetime DEFAULT NULL, 6 | `body` text, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/init/mydb/product/comments.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `comments` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `user_id` bigint(20) unsigned NOT NULL, 5 | `created_at` datetime DEFAULT NULL, 6 | `body` text, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden/autoinc/mydb/product/subscriptions.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `subscriptions` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `subscribed_at` int(10) unsigned DEFAULT NULL, 5 | PRIMARY KEY (`post_id`,`user_id`), 6 | KEY `user_post` (`user_id`,`post_id`) 7 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 8 | -------------------------------------------------------------------------------- /testdata/golden/ignore/mydb/product/subscriptions.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `subscriptions` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `subscribed_at` int(10) unsigned DEFAULT NULL, 5 | PRIMARY KEY (`post_id`,`user_id`), 6 | KEY `user_post` (`user_id`,`post_id`) 7 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 8 | -------------------------------------------------------------------------------- /testdata/golden/init/mydb/product/subscriptions.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `subscriptions` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `subscribed_at` int(10) unsigned DEFAULT NULL, 5 | PRIMARY KEY (`post_id`,`user_id`), 6 | KEY `user_post` (`user_id`,`post_id`) 7 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 8 | -------------------------------------------------------------------------------- /testdata/golden/pull1/mydb/product/subscriptions.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `subscriptions` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `subscribed_at` int(10) unsigned DEFAULT NULL, 5 | PRIMARY KEY (`post_id`,`user_id`), 6 | KEY `user_post` (`user_id`,`post_id`) 7 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 8 | -------------------------------------------------------------------------------- /testdata/golden/unsupported/mydb/product/comments.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `comments` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `user_id` bigint(20) unsigned NOT NULL, 5 | `created_at` datetime DEFAULT NULL, 6 | `body` text, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/ioutils/temp_unix.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package ioutils // import "github.com/docker/docker/pkg/ioutils" 4 | 5 | import "io/ioutil" 6 | 7 | // TempDir on Unix systems is equivalent to ioutil.TempDir. 8 | func TempDir(dir, prefix string) (string, error) { 9 | return ioutil.TempDir(dir, prefix) 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/registry_auth.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 go-dockerclient authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package docker 6 | 7 | type registryAuth interface { 8 | isEmpty() bool 9 | headerKey() string 10 | } 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/lint/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: go 3 | go: 4 | - 1.10.x 5 | - 1.11.x 6 | - master 7 | 8 | go_import_path: golang.org/x/lint 9 | 10 | install: 11 | - go get -t -v ./... 12 | 13 | script: 14 | - go test -v -race ./... 15 | 16 | matrix: 17 | allow_failures: 18 | - go: master 19 | fast_finish: true 20 | -------------------------------------------------------------------------------- /dumper/testdata/input/posts.sql: -------------------------------------------------------------------------------- 1 | /* pre comment preserved */ 2 | CREATE TABLE posts ( 3 | id bigint unsigned NOT NULL AUTO_INCREMENT primary key, 4 | user_id bigint unsigned NOT NULL, 5 | body varchar(150), 6 | created_at int unsigned, 7 | index user_created (user_id, created_at) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -- post comment preserved -------------------------------------------------------------------------------- /linter/testdata/validcfg/hastime.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `hastime` ( 2 | id int(10) unsigned NOT NULL, 3 | time_is_bad time, /* annotations: has-time */ 4 | date_is_fine date, 5 | timestamp_is_bad timestamp, /* annotations: has-time */ 6 | datetime_is_bad datetime, /* annotations: has-time */ 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -------------------------------------------------------------------------------- /testdata/golden-mysql55/autoinc/mydb/product/comments.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `comments` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `user_id` bigint(20) unsigned NOT NULL, 5 | `created_at` datetime DEFAULT NULL, 6 | `body` text, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/ignore/mydb/product/comments.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `comments` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `user_id` bigint(20) unsigned NOT NULL, 5 | `created_at` datetime DEFAULT NULL, 6 | `body` text, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/init/mydb/product/subscriptions.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `subscriptions` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `subscribed_at` int(10) unsigned DEFAULT NULL, 5 | PRIMARY KEY (`post_id`,`user_id`), 6 | KEY `user_post` (`user_id`,`post_id`) 7 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 8 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/routines/mydb/product/comments.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `comments` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `user_id` bigint(20) unsigned NOT NULL, 5 | `created_at` datetime DEFAULT NULL, 6 | `body` text, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/autoinc/mydb/product/comments.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `comments` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `user_id` bigint(20) unsigned NOT NULL, 5 | `created_at` datetime DEFAULT NULL, 6 | `body` text, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/ignore/mydb/product/comments.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `comments` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `user_id` bigint(20) unsigned NOT NULL, 5 | `created_at` datetime DEFAULT NULL, 6 | `body` text, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/init/mydb/product/subscriptions.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `subscriptions` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `subscribed_at` int(10) unsigned DEFAULT NULL, 5 | PRIMARY KEY (`post_id`,`user_id`), 6 | KEY `user_post` (`user_id`,`post_id`) 7 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 8 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/routines/mydb/product/comments.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `comments` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `user_id` bigint(20) unsigned NOT NULL, 5 | `created_at` datetime DEFAULT NULL, 6 | `body` text, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden/routines/mydb/product/subscriptions.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `subscriptions` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `subscribed_at` int(10) unsigned DEFAULT NULL, 5 | PRIMARY KEY (`post_id`,`user_id`), 6 | KEY `user_post` (`user_id`,`post_id`) 7 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 8 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_bsd.go: -------------------------------------------------------------------------------- 1 | // +build darwin dragonfly freebsd netbsd openbsd 2 | 3 | package logrus 4 | 5 | import "golang.org/x/sys/unix" 6 | 7 | const ioctlReadTermios = unix.TIOCGETA 8 | 9 | func isTerminal(fd int) bool { 10 | _, err := unix.IoctlGetTermios(fd, ioctlReadTermios) 11 | return err == nil 12 | } 13 | 14 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/ignore/mydb/product/subscriptions.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `subscriptions` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `subscribed_at` int(10) unsigned DEFAULT NULL, 5 | PRIMARY KEY (`post_id`,`user_id`), 6 | KEY `user_post` (`user_id`,`post_id`) 7 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 8 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/init/mydb/product/subscriptions.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `subscriptions` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `subscribed_at` int(10) unsigned DEFAULT NULL, 5 | PRIMARY KEY (`post_id`,`user_id`), 6 | KEY `user_post` (`user_id`,`post_id`) 7 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 8 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/pull1/mydb/product/subscriptions.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `subscriptions` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `subscribed_at` int(10) unsigned DEFAULT NULL, 5 | PRIMARY KEY (`post_id`,`user_id`), 6 | KEY `user_post` (`user_id`,`post_id`) 7 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 8 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/autoinc/mydb/product/subscriptions.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `subscriptions` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `subscribed_at` int(10) unsigned DEFAULT NULL, 5 | PRIMARY KEY (`post_id`,`user_id`), 6 | KEY `user_post` (`user_id`,`post_id`) 7 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 8 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/ignore/mydb/product/subscriptions.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `subscriptions` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `subscribed_at` int(10) unsigned DEFAULT NULL, 5 | PRIMARY KEY (`post_id`,`user_id`), 6 | KEY `user_post` (`user_id`,`post_id`) 7 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 8 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/pull1/mydb/product/subscriptions.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `subscriptions` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `subscribed_at` int(10) unsigned DEFAULT NULL, 5 | PRIMARY KEY (`post_id`,`user_id`), 6 | KEY `user_post` (`user_id`,`post_id`) 7 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 8 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/routines/mydb/product/subscriptions.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `subscriptions` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `subscribed_at` int(10) unsigned DEFAULT NULL, 5 | PRIMARY KEY (`post_id`,`user_id`), 6 | KEY `user_post` (`user_id`,`post_id`) 7 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 8 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/unsupported/mydb/product/comments.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `comments` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `user_id` bigint(20) unsigned NOT NULL, 5 | `created_at` datetime DEFAULT NULL, 6 | `body` text, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/autoinc/mydb/product/subscriptions.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `subscriptions` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `subscribed_at` int(10) unsigned DEFAULT NULL, 5 | PRIMARY KEY (`post_id`,`user_id`), 6 | KEY `user_post` (`user_id`,`post_id`) 7 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 8 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/ignore/mydb/product/subscriptions.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `subscriptions` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `subscribed_at` int(10) unsigned DEFAULT NULL, 5 | PRIMARY KEY (`post_id`,`user_id`), 6 | KEY `user_post` (`user_id`,`post_id`) 7 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 8 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/pull1/mydb/product/subscriptions.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `subscriptions` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `subscribed_at` int(10) unsigned DEFAULT NULL, 5 | PRIMARY KEY (`post_id`,`user_id`), 6 | KEY `user_post` (`user_id`,`post_id`) 7 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 8 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/routines/mydb/product/subscriptions.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `subscriptions` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `subscribed_at` int(10) unsigned DEFAULT NULL, 5 | PRIMARY KEY (`post_id`,`user_id`), 6 | KEY `user_post` (`user_id`,`post_id`) 7 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 8 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/unsupported/mydb/product/comments.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `comments` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `user_id` bigint(20) unsigned NOT NULL, 5 | `created_at` datetime DEFAULT NULL, 6 | `body` text, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/term_unix_aix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package term 6 | 7 | import "golang.org/x/sys/unix" 8 | 9 | const ioctlReadTermios = unix.TCGETS 10 | const ioctlWriteTermios = unix.TCSETS 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/term_unix_zos.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package term 6 | 7 | import "golang.org/x/sys/unix" 8 | 9 | const ioctlReadTermios = unix.TCGETS 10 | const ioctlWriteTermios = unix.TCSETS 11 | -------------------------------------------------------------------------------- /dumper/testdata/golden/multi.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `multi1` ( 2 | `name` varchar(30) DEFAULT NULL 3 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 4 | 5 | CREATE TABLE `multi2` ( 6 | `id` int(10) unsigned DEFAULT NULL 7 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; CREATE TABLE `multi3` ( 8 | `whatever` char(3) DEFAULT NULL 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1 10 | ; -------------------------------------------------------------------------------- /fs/testdata/sqlsymlinks/analytics/pageviews.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `pageviews` ( 2 | `url` varchar(200) NOT NULL, 3 | `start_ts` int(10) unsigned NOT NULL, 4 | `end_ts` int(10) unsigned NOT NULL, 5 | `views` bigint(20) unsigned DEFAULT NULL, 6 | `domain` varchar(40) NOT NULL, 7 | PRIMARY KEY (`url`,`start_ts`,`end_ts`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/autoinc/mydb/product/subscriptions.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `subscriptions` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `subscribed_at` int(10) unsigned DEFAULT NULL, 5 | PRIMARY KEY (`post_id`,`user_id`), 6 | KEY `user_post` (`user_id`,`post_id`) 7 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 8 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/init/mydb/product/comments.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `comments` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `user_id` bigint(20) unsigned NOT NULL, 5 | `created_at` datetime DEFAULT NULL, 6 | `body` text DEFAULT NULL, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/routines/mydb/product/subscriptions.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `subscriptions` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `subscribed_at` int(10) unsigned DEFAULT NULL, 5 | PRIMARY KEY (`post_id`,`user_id`), 6 | KEY `user_post` (`user_id`,`post_id`) 7 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 8 | -------------------------------------------------------------------------------- /testdata/golden/ignore/mydb/analytics/pageviews.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `pageviews` ( 2 | `url` varchar(200) NOT NULL, 3 | `start_ts` int(10) unsigned NOT NULL, 4 | `end_ts` int(10) unsigned NOT NULL, 5 | `views` bigint(20) unsigned DEFAULT NULL, 6 | `domain` varchar(40) NOT NULL, 7 | PRIMARY KEY (`url`,`start_ts`,`end_ts`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden/init/mydb/analytics/pageviews.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `pageviews` ( 2 | `url` varchar(200) NOT NULL, 3 | `start_ts` int(10) unsigned NOT NULL, 4 | `end_ts` int(10) unsigned NOT NULL, 5 | `views` bigint(20) unsigned DEFAULT NULL, 6 | `domain` varchar(40) NOT NULL, 7 | PRIMARY KEY (`url`,`start_ts`,`end_ts`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden/pull1/mydb/analytics/pageviews.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `pageviews` ( 2 | `url` varchar(200) NOT NULL, 3 | `start_ts` int(10) unsigned NOT NULL, 4 | `end_ts` int(10) unsigned NOT NULL, 5 | `views` bigint(20) unsigned DEFAULT NULL, 6 | `domain` varchar(40) NOT NULL, 7 | PRIMARY KEY (`url`,`start_ts`,`end_ts`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/utimes_unsupported.go: -------------------------------------------------------------------------------- 1 | // +build !linux,!freebsd 2 | 3 | package system // import "github.com/docker/docker/pkg/system" 4 | 5 | import "syscall" 6 | 7 | // LUtimesNano is only supported on linux and freebsd. 8 | func LUtimesNano(path string, ts []syscall.Timespec) error { 9 | return ErrNotSupportedPlatform 10 | } 11 | -------------------------------------------------------------------------------- /vendor/github.com/moby/term/windows/doc.go: -------------------------------------------------------------------------------- 1 | // These files implement ANSI-aware input and output streams for use by the Docker Windows client. 2 | // When asked for the set of standard streams (e.g., stdin, stdout, stderr), the code will create 3 | // and return pseudo-streams that convert ANSI sequences to / from Windows Console API calls. 4 | 5 | package windowsconsole 6 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/term_unix_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package term 6 | 7 | import "golang.org/x/sys/unix" 8 | 9 | const ioctlReadTermios = unix.TCGETS 10 | const ioctlWriteTermios = unix.TCSETS 11 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/autoinc/mydb/product/comments.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `comments` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `user_id` bigint(20) unsigned NOT NULL, 5 | `created_at` datetime DEFAULT NULL, 6 | `body` text DEFAULT NULL, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/ignore/mydb/product/comments.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `comments` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `user_id` bigint(20) unsigned NOT NULL, 5 | `created_at` datetime DEFAULT NULL, 6 | `body` text DEFAULT NULL, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/routines/mydb/product/comments.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `comments` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `user_id` bigint(20) unsigned NOT NULL, 5 | `created_at` datetime DEFAULT NULL, 6 | `body` text DEFAULT NULL, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden/autoinc/mydb/analytics/pageviews.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `pageviews` ( 2 | `url` varchar(200) NOT NULL, 3 | `start_ts` int(10) unsigned NOT NULL, 4 | `end_ts` int(10) unsigned NOT NULL, 5 | `views` bigint(20) unsigned DEFAULT NULL, 6 | `domain` varchar(40) NOT NULL, 7 | PRIMARY KEY (`url`,`start_ts`,`end_ts`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden/routines/mydb/analytics/pageviews.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `pageviews` ( 2 | `url` varchar(200) NOT NULL, 3 | `start_ts` int(10) unsigned NOT NULL, 4 | `end_ts` int(10) unsigned NOT NULL, 5 | `views` bigint(20) unsigned DEFAULT NULL, 6 | `domain` varchar(40) NOT NULL, 7 | PRIMARY KEY (`url`,`start_ts`,`end_ts`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden/unsupported/mydb/analytics/pageviews.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `pageviews` ( 2 | `url` varchar(200) NOT NULL, 3 | `start_ts` int(10) unsigned NOT NULL, 4 | `end_ts` int(10) unsigned NOT NULL, 5 | `views` bigint(20) unsigned DEFAULT NULL, 6 | `domain` varchar(40) NOT NULL, 7 | PRIMARY KEY (`url`,`start_ts`,`end_ts`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/syscall_unix.go: -------------------------------------------------------------------------------- 1 | // +build linux freebsd 2 | 3 | package system // import "github.com/docker/docker/pkg/system" 4 | 5 | import "golang.org/x/sys/unix" 6 | 7 | // Unmount is a platform-specific helper function to call 8 | // the unmount syscall. 9 | func Unmount(dest string) error { 10 | return unix.Unmount(dest, 0) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/moby/sys/mountinfo/mountinfo_unsupported.go: -------------------------------------------------------------------------------- 1 | // +build !windows,!linux,!freebsd freebsd,!cgo 2 | 3 | package mountinfo 4 | 5 | import ( 6 | "fmt" 7 | "runtime" 8 | ) 9 | 10 | func parseMountTable(f FilterFunc) ([]*Info, error) { 11 | return nil, fmt.Errorf("mount.parseMountTable is not implemented on %s/%s", runtime.GOOS, runtime.GOARCH) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/terminal_check_notappengine.go: -------------------------------------------------------------------------------- 1 | // +build !appengine,!js,!windows,!nacl,!plan9 2 | 3 | package logrus 4 | 5 | import ( 6 | "io" 7 | "os" 8 | ) 9 | 10 | func checkIfTerminal(w io.Writer) bool { 11 | switch v := w.(type) { 12 | case *os.File: 13 | return isTerminal(int(v.Fd())) 14 | default: 15 | return false 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_big.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | // +build armbe arm64be m68k mips mips64 mips64p32 ppc ppc64 s390 s390x shbe sparc sparc64 6 | 7 | package unix 8 | 9 | const isBigEndian = true 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/empty.s: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !go1.12 6 | 7 | // This file is here to allow bodyless functions with go:linkname for Go 1.11 8 | // and earlier (see https://golang.org/issue/23311). 9 | -------------------------------------------------------------------------------- /fs/testdata/host/db/users.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `users` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `name` varchar(30) NOT NULL, 4 | `credits` decimal(9,2) DEFAULT '10.00', 5 | `last_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 6 | PRIMARY KEY (`id`), 7 | UNIQUE KEY `name` (`name`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /linter/testdata/validcfg/hasfloat.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `hasfloat` ( 2 | id int(10) unsigned NOT NULL, 3 | decimal_is_fine decimal(25,2), 4 | float_is_bad float(23), /* annotations: has-float */ 5 | float2_is_bad float(7,4), /* annotations: has-float */ 6 | double_is_bad double(53,2), /* annotations: has-float */ 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -------------------------------------------------------------------------------- /testdata/golden-mariadb102/init/mydb/analytics/pageviews.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `pageviews` ( 2 | `url` varchar(200) NOT NULL, 3 | `start_ts` int(10) unsigned NOT NULL, 4 | `end_ts` int(10) unsigned NOT NULL, 5 | `views` bigint(20) unsigned DEFAULT NULL, 6 | `domain` varchar(40) NOT NULL, 7 | PRIMARY KEY (`url`,`start_ts`,`end_ts`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/pull1/mydb/analytics/pageviews.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `pageviews` ( 2 | `url` varchar(200) NOT NULL, 3 | `start_ts` int(10) unsigned NOT NULL, 4 | `end_ts` int(10) unsigned NOT NULL, 5 | `views` bigint(20) unsigned DEFAULT NULL, 6 | `domain` varchar(40) NOT NULL, 7 | PRIMARY KEY (`url`,`start_ts`,`end_ts`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/unsupported/mydb/product/comments.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `comments` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `post_id` bigint(20) unsigned NOT NULL, 4 | `user_id` bigint(20) unsigned NOT NULL, 5 | `created_at` datetime DEFAULT NULL, 6 | `body` text DEFAULT NULL, 7 | PRIMARY KEY (`id`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/autoinc/mydb/analytics/pageviews.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `pageviews` ( 2 | `url` varchar(200) NOT NULL, 3 | `start_ts` int(10) unsigned NOT NULL, 4 | `end_ts` int(10) unsigned NOT NULL, 5 | `views` bigint(20) unsigned DEFAULT NULL, 6 | `domain` varchar(40) NOT NULL, 7 | PRIMARY KEY (`url`,`start_ts`,`end_ts`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/ignore/mydb/analytics/pageviews.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `pageviews` ( 2 | `url` varchar(200) NOT NULL, 3 | `start_ts` int(10) unsigned NOT NULL, 4 | `end_ts` int(10) unsigned NOT NULL, 5 | `views` bigint(20) unsigned DEFAULT NULL, 6 | `domain` varchar(40) NOT NULL, 7 | PRIMARY KEY (`url`,`start_ts`,`end_ts`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/init/mydb/analytics/pageviews.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `pageviews` ( 2 | `url` varchar(200) NOT NULL, 3 | `start_ts` int(10) unsigned NOT NULL, 4 | `end_ts` int(10) unsigned NOT NULL, 5 | `views` bigint(20) unsigned DEFAULT NULL, 6 | `domain` varchar(40) NOT NULL, 7 | PRIMARY KEY (`url`,`start_ts`,`end_ts`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/pull1/mydb/analytics/pageviews.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `pageviews` ( 2 | `url` varchar(200) NOT NULL, 3 | `start_ts` int(10) unsigned NOT NULL, 4 | `end_ts` int(10) unsigned NOT NULL, 5 | `views` bigint(20) unsigned DEFAULT NULL, 6 | `domain` varchar(40) NOT NULL, 7 | PRIMARY KEY (`url`,`start_ts`,`end_ts`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/routines/mydb/analytics/pageviews.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `pageviews` ( 2 | `url` varchar(200) NOT NULL, 3 | `start_ts` int(10) unsigned NOT NULL, 4 | `end_ts` int(10) unsigned NOT NULL, 5 | `views` bigint(20) unsigned DEFAULT NULL, 6 | `domain` varchar(40) NOT NULL, 7 | PRIMARY KEY (`url`,`start_ts`,`end_ts`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/autoinc/mydb/analytics/pageviews.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `pageviews` ( 2 | `url` varchar(200) NOT NULL, 3 | `start_ts` int(10) unsigned NOT NULL, 4 | `end_ts` int(10) unsigned NOT NULL, 5 | `views` bigint(20) unsigned DEFAULT NULL, 6 | `domain` varchar(40) NOT NULL, 7 | PRIMARY KEY (`url`,`start_ts`,`end_ts`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/ignore/mydb/analytics/pageviews.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `pageviews` ( 2 | `url` varchar(200) NOT NULL, 3 | `start_ts` int(10) unsigned NOT NULL, 4 | `end_ts` int(10) unsigned NOT NULL, 5 | `views` bigint(20) unsigned DEFAULT NULL, 6 | `domain` varchar(40) NOT NULL, 7 | PRIMARY KEY (`url`,`start_ts`,`end_ts`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/init/mydb/analytics/pageviews.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `pageviews` ( 2 | `url` varchar(200) NOT NULL, 3 | `start_ts` int(10) unsigned NOT NULL, 4 | `end_ts` int(10) unsigned NOT NULL, 5 | `views` bigint(20) unsigned DEFAULT NULL, 6 | `domain` varchar(40) NOT NULL, 7 | PRIMARY KEY (`url`,`start_ts`,`end_ts`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/pull1/mydb/analytics/pageviews.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `pageviews` ( 2 | `url` varchar(200) NOT NULL, 3 | `start_ts` int(10) unsigned NOT NULL, 4 | `end_ts` int(10) unsigned NOT NULL, 5 | `views` bigint(20) unsigned DEFAULT NULL, 6 | `domain` varchar(40) NOT NULL, 7 | PRIMARY KEY (`url`,`start_ts`,`end_ts`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/routines/mydb/analytics/pageviews.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `pageviews` ( 2 | `url` varchar(200) NOT NULL, 3 | `start_ts` int(10) unsigned NOT NULL, 4 | `end_ts` int(10) unsigned NOT NULL, 5 | `views` bigint(20) unsigned DEFAULT NULL, 6 | `domain` varchar(40) NOT NULL, 7 | PRIMARY KEY (`url`,`start_ts`,`end_ts`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /workspace/testdata/simple/posts.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `posts` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `user_id` bigint(20) unsigned NOT NULL, 4 | `body` text, 5 | `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 6 | PRIMARY KEY (`id`), 7 | KEY `user_updated` (`user_id`,`updated_at`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/autoinc/mydb/analytics/pageviews.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `pageviews` ( 2 | `url` varchar(200) NOT NULL, 3 | `start_ts` int(10) unsigned NOT NULL, 4 | `end_ts` int(10) unsigned NOT NULL, 5 | `views` bigint(20) unsigned DEFAULT NULL, 6 | `domain` varchar(40) NOT NULL, 7 | PRIMARY KEY (`url`,`start_ts`,`end_ts`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/ignore/mydb/analytics/pageviews.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `pageviews` ( 2 | `url` varchar(200) NOT NULL, 3 | `start_ts` int(10) unsigned NOT NULL, 4 | `end_ts` int(10) unsigned NOT NULL, 5 | `views` bigint(20) unsigned DEFAULT NULL, 6 | `domain` varchar(40) NOT NULL, 7 | PRIMARY KEY (`url`,`start_ts`,`end_ts`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/routines/mydb/analytics/pageviews.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `pageviews` ( 2 | `url` varchar(200) NOT NULL, 3 | `start_ts` int(10) unsigned NOT NULL, 4 | `end_ts` int(10) unsigned NOT NULL, 5 | `views` bigint(20) unsigned DEFAULT NULL, 6 | `domain` varchar(40) NOT NULL, 7 | PRIMARY KEY (`url`,`start_ts`,`end_ts`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/unsupported/mydb/analytics/pageviews.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `pageviews` ( 2 | `url` varchar(200) NOT NULL, 3 | `start_ts` int(10) unsigned NOT NULL, 4 | `end_ts` int(10) unsigned NOT NULL, 5 | `views` bigint(20) unsigned DEFAULT NULL, 6 | `domain` varchar(40) NOT NULL, 7 | PRIMARY KEY (`url`,`start_ts`,`end_ts`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/unsupported/mydb/analytics/pageviews.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `pageviews` ( 2 | `url` varchar(200) NOT NULL, 3 | `start_ts` int(10) unsigned NOT NULL, 4 | `end_ts` int(10) unsigned NOT NULL, 5 | `views` bigint(20) unsigned DEFAULT NULL, 6 | `domain` varchar(40) NOT NULL, 7 | PRIMARY KEY (`url`,`start_ts`,`end_ts`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /vendor/github.com/Azure/go-ansiterm/winterm/utilities.go: -------------------------------------------------------------------------------- 1 | // +build windows 2 | 3 | package winterm 4 | 5 | // AddInRange increments a value by the passed quantity while ensuring the values 6 | // always remain within the supplied min / max range. 7 | func addInRange(n int16, increment int16, min int16, max int16) int16 { 8 | return ensureInRange(n+increment, min, max) 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/go-digest/.pullapprove.yml: -------------------------------------------------------------------------------- 1 | approve_by_comment: true 2 | approve_regex: '^(Approved|lgtm|LGTM|:shipit:|:star:|:\+1:|:ship:)' 3 | reject_regex: ^Rejected 4 | reset_on_push: true 5 | author_approval: ignored 6 | signed_off_by: 7 | required: true 8 | reviewers: 9 | teams: 10 | - go-digest-maintainers 11 | name: default 12 | required: 2 13 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/unsupported/mydb/analytics/pageviews.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `pageviews` ( 2 | `url` varchar(200) NOT NULL, 3 | `start_ts` int(10) unsigned NOT NULL, 4 | `end_ts` int(10) unsigned NOT NULL, 5 | `views` bigint(20) unsigned DEFAULT NULL, 6 | `domain` varchar(40) NOT NULL, 7 | PRIMARY KEY (`url`,`start_ts`,`end_ts`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/appveyor.yml: -------------------------------------------------------------------------------- 1 | version: "{build}" 2 | platform: x64 3 | clone_folder: c:\gopath\src\github.com\sirupsen\logrus 4 | environment: 5 | GOPATH: c:\gopath 6 | branches: 7 | only: 8 | - master 9 | install: 10 | - set PATH=%GOPATH%\bin;c:\go\bin;%PATH% 11 | - go version 12 | build_script: 13 | - go get -t 14 | - go test 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/constants.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | package unix 8 | 9 | const ( 10 | R_OK = 0x4 11 | W_OK = 0x2 12 | X_OK = 0x1 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_little.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | // +build 386 amd64 amd64p32 alpha arm arm64 mipsle mips64le mips64p32le nios2 ppc64le riscv riscv64 sh 6 | 7 | package unix 8 | 9 | const isBigEndian = false 10 | -------------------------------------------------------------------------------- /workspace/testdata/simple/users.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `users` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `name` varchar(30) NOT NULL, 4 | `credits` decimal(9,2) DEFAULT '10.00', 5 | `last_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 6 | PRIMARY KEY (`id`), 7 | UNIQUE KEY `name` (`name`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /fs/testdata/cfgsymlinks1/validrel/users.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `users` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `name` varchar(30) NOT NULL, 4 | `credits` decimal(9,2) DEFAULT '10.00', 5 | `last_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 6 | PRIMARY KEY (`id`), 7 | UNIQUE KEY `name` (`name`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /fs/testdata/cfgsymlinks2/product/users.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `users` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `name` varchar(30) NOT NULL, 4 | `credits` decimal(9,2) DEFAULT '10.00', 5 | `last_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 6 | PRIMARY KEY (`id`), 7 | UNIQUE KEY `name` (`name`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /fs/testdata/sqlsymlinks/product/users.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `users` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `name` varchar(30) NOT NULL, 4 | `credits` decimal(9,2) DEFAULT '10.00', 5 | `last_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 6 | PRIMARY KEY (`id`), 7 | UNIQUE KEY `name` (`name`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden/init/mydb/product/users.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `users` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `name` varchar(30) NOT NULL, 4 | `credits` decimal(9,2) DEFAULT '10.00', 5 | `last_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 6 | PRIMARY KEY (`id`), 7 | UNIQUE KEY `name` (`name`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden/pull1/mydb/product/users.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `users` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `name` varchar(30) NOT NULL, 4 | `credits` decimal(9,2) DEFAULT '10.00', 5 | `last_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 6 | PRIMARY KEY (`id`), 7 | UNIQUE KEY `name` (`name`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /vendor/github.com/moby/term/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/moby/term 2 | 3 | go 1.13 4 | 5 | require ( 6 | github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78 7 | github.com/creack/pty v1.1.9 8 | github.com/google/go-cmp v0.3.1 9 | github.com/pkg/errors v0.9.1 // indirect 10 | golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527 11 | gotest.tools v2.2.0+incompatible 12 | ) 13 | -------------------------------------------------------------------------------- /fs/testdata/cfgsymlinks1/invalidabs/users.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `users` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `name` varchar(30) NOT NULL, 4 | `credits` decimal(9,2) DEFAULT '10.00', 5 | `last_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 6 | PRIMARY KEY (`id`), 7 | UNIQUE KEY `name` (`name`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /fs/testdata/cfgsymlinks1/invalidrel/users.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `users` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `name` varchar(30) NOT NULL, 4 | `credits` decimal(9,2) DEFAULT '10.00', 5 | `last_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 6 | PRIMARY KEY (`id`), 7 | UNIQUE KEY `name` (`name`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden/ignore/mydb/product/users.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `users` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `name` varchar(30) NOT NULL, 4 | `credits` decimal(9,2) DEFAULT '10.00', 5 | `last_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 6 | PRIMARY KEY (`id`), 7 | UNIQUE KEY `name` (`name`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden/routines/mydb/product/users.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `users` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `name` varchar(30) NOT NULL, 4 | `credits` decimal(9,2) DEFAULT '10.00', 5 | `last_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 6 | PRIMARY KEY (`id`), 7 | UNIQUE KEY `name` (`name`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build windows 6 | // +build go1.9 7 | 8 | package windows 9 | 10 | import "syscall" 11 | 12 | type Errno = syscall.Errno 13 | type SysProcAttr = syscall.SysProcAttr 14 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/ignore/mydb/product/users.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `users` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `name` varchar(30) NOT NULL, 4 | `credits` decimal(9,2) DEFAULT '10.00', 5 | `last_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 6 | PRIMARY KEY (`id`), 7 | UNIQUE KEY `name` (`name`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/init/mydb/product/posts.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `posts` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `user_id` bigint(20) unsigned NOT NULL, 4 | `body` text, 5 | `created_at` datetime DEFAULT NULL, 6 | `edited_at` datetime DEFAULT NULL, 7 | PRIMARY KEY (`id`), 8 | KEY `user_created` (`user_id`,`created_at`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/init/mydb/product/users.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `users` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `name` varchar(30) NOT NULL, 4 | `credits` decimal(9,2) DEFAULT '10.00', 5 | `last_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 6 | PRIMARY KEY (`id`), 7 | UNIQUE KEY `name` (`name`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/pull1/mydb/product/users.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `users` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `name` varchar(30) NOT NULL, 4 | `credits` decimal(9,2) DEFAULT '10.00', 5 | `last_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 6 | PRIMARY KEY (`id`), 7 | UNIQUE KEY `name` (`name`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/ignore/mydb/product/users.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `users` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `name` varchar(30) NOT NULL, 4 | `credits` decimal(9,2) DEFAULT '10.00', 5 | `last_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 6 | PRIMARY KEY (`id`), 7 | UNIQUE KEY `name` (`name`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/init/mydb/product/users.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `users` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `name` varchar(30) NOT NULL, 4 | `credits` decimal(9,2) DEFAULT '10.00', 5 | `last_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 6 | PRIMARY KEY (`id`), 7 | UNIQUE KEY `name` (`name`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/pull1/mydb/product/users.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `users` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `name` varchar(30) NOT NULL, 4 | `credits` decimal(9,2) DEFAULT '10.00', 5 | `last_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 6 | PRIMARY KEY (`id`), 7 | UNIQUE KEY `name` (`name`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden/unsupported/mydb/product/users.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `users` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `name` varchar(30) NOT NULL, 4 | `credits` decimal(9,2) DEFAULT '10.00', 5 | `last_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 6 | PRIMARY KEY (`id`), 7 | UNIQUE KEY `name` (`name`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build amd64,linux 6 | // +build gc 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | //go:noescape 13 | func gettimeofday(tv *Timeval) (err syscall.Errno) 14 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/ignore/mydb/product/users.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `users` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `name` varchar(30) NOT NULL, 4 | `credits` decimal(9,2) DEFAULT 10.00, 5 | `last_modified` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), 6 | PRIMARY KEY (`id`), 7 | UNIQUE KEY `name` (`name`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/init/mydb/product/users.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `users` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `name` varchar(30) NOT NULL, 4 | `credits` decimal(9,2) DEFAULT 10.00, 5 | `last_modified` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), 6 | PRIMARY KEY (`id`), 7 | UNIQUE KEY `name` (`name`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/pull1/mydb/product/users.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `users` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `name` varchar(30) NOT NULL, 4 | `credits` decimal(9,2) DEFAULT 10.00, 5 | `last_modified` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), 6 | PRIMARY KEY (`id`), 7 | UNIQUE KEY `name` (`name`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/autoinc/mydb/product/posts.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `posts` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `user_id` bigint(20) unsigned NOT NULL, 4 | `body` text, 5 | `created_at` datetime DEFAULT NULL, 6 | `edited_at` datetime DEFAULT NULL, 7 | PRIMARY KEY (`id`), 8 | KEY `user_created` (`user_id`,`created_at`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/ignore/mydb/product/posts.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `posts` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `user_id` bigint(20) unsigned NOT NULL, 4 | `body` text, 5 | `created_at` datetime DEFAULT NULL, 6 | `edited_at` datetime DEFAULT NULL, 7 | PRIMARY KEY (`id`), 8 | KEY `user_created` (`user_id`,`created_at`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/routines/mydb/product/posts.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `posts` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `user_id` bigint(20) unsigned NOT NULL, 4 | `body` text, 5 | `created_at` datetime DEFAULT NULL, 6 | `edited_at` datetime DEFAULT NULL, 7 | PRIMARY KEY (`id`), 8 | KEY `user_created` (`user_id`,`created_at`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/routines/mydb/product/users.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `users` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `name` varchar(30) NOT NULL, 4 | `credits` decimal(9,2) DEFAULT '10.00', 5 | `last_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 6 | PRIMARY KEY (`id`), 7 | UNIQUE KEY `name` (`name`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/unsupported/mydb/product/users.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `users` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `name` varchar(30) NOT NULL, 4 | `credits` decimal(9,2) DEFAULT '10.00', 5 | `last_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 6 | PRIMARY KEY (`id`), 7 | UNIQUE KEY `name` (`name`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/routines/mydb/product/users.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `users` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `name` varchar(30) NOT NULL, 4 | `credits` decimal(9,2) DEFAULT '10.00', 5 | `last_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 6 | PRIMARY KEY (`id`), 7 | UNIQUE KEY `name` (`name`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/unsupported/mydb/product/users.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `users` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `name` varchar(30) NOT NULL, 4 | `credits` decimal(9,2) DEFAULT '10.00', 5 | `last_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 6 | PRIMARY KEY (`id`), 7 | UNIQUE KEY `name` (`name`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/umask.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package system // import "github.com/docker/docker/pkg/system" 4 | 5 | import ( 6 | "golang.org/x/sys/unix" 7 | ) 8 | 9 | // Umask sets current process's file mode creation mask to newmask 10 | // and returns oldmask. 11 | func Umask(newmask int) (oldmask int, err error) { 12 | return unix.Umask(newmask), nil 13 | } 14 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/routines/mydb/product/users.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `users` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `name` varchar(30) NOT NULL, 4 | `credits` decimal(9,2) DEFAULT 10.00, 5 | `last_modified` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), 6 | PRIMARY KEY (`id`), 7 | UNIQUE KEY `name` (`name`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/unsupported/mydb/product/users.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `users` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `name` varchar(30) NOT NULL, 4 | `credits` decimal(9,2) DEFAULT 10.00, 5 | `last_modified` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), 6 | PRIMARY KEY (`id`), 7 | UNIQUE KEY `name` (`name`) 8 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/unsupported/mydb/product/posts.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `posts` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `user_id` bigint(20) unsigned NOT NULL, 4 | `body` text, 5 | `created_at` datetime DEFAULT NULL, 6 | `edited_at` datetime DEFAULT NULL, 7 | PRIMARY KEY (`id`), 8 | KEY `user_created` (`user_id`,`created_at`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden/autoinc/mydb/product/users.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `users` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `name` varchar(30) NOT NULL, 4 | `credits` decimal(9,2) DEFAULT '10.00', 5 | `last_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 6 | PRIMARY KEY (`id`), 7 | UNIQUE KEY `name` (`name`) 8 | ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /vendor/github.com/Azure/go-ansiterm/utilities.go: -------------------------------------------------------------------------------- 1 | package ansiterm 2 | 3 | import ( 4 | "strconv" 5 | ) 6 | 7 | func sliceContains(bytes []byte, b byte) bool { 8 | for _, v := range bytes { 9 | if v == b { 10 | return true 11 | } 12 | } 13 | 14 | return false 15 | } 16 | 17 | func convertBytesToInteger(bytes []byte) int { 18 | s := string(bytes) 19 | i, _ := strconv.Atoi(s) 20 | return i 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/archive/time_unsupported.go: -------------------------------------------------------------------------------- 1 | // +build !linux 2 | 3 | package archive // import "github.com/docker/docker/pkg/archive" 4 | 5 | import ( 6 | "syscall" 7 | "time" 8 | ) 9 | 10 | func timeToTimespec(time time.Time) (ts syscall.Timespec) { 11 | nsec := int64(0) 12 | if !time.IsZero() { 13 | nsec = time.UnixNano() 14 | } 15 | return syscall.NsecToTimespec(nsec) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/jmoiron/sqlx/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | tags 24 | environ 25 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/errors/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | -------------------------------------------------------------------------------- /vendor/github.com/sirupsen/logrus/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/sirupsen/logrus 2 | 3 | require ( 4 | github.com/davecgh/go-spew v1.1.1 // indirect 5 | github.com/konsorten/go-windows-terminal-sequences v1.0.1 6 | github.com/pmezard/go-difflib v1.0.0 // indirect 7 | github.com/stretchr/objx v0.1.1 // indirect 8 | github.com/stretchr/testify v1.2.2 9 | golang.org/x/sys v0.0.0-20190422165155-953cdadca894 10 | ) 11 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/autoinc/mydb/product/users.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `users` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `name` varchar(30) NOT NULL, 4 | `credits` decimal(9,2) DEFAULT '10.00', 5 | `last_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 6 | PRIMARY KEY (`id`), 7 | UNIQUE KEY `name` (`name`) 8 | ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/autoinc/mydb/product/users.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `users` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `name` varchar(30) NOT NULL, 4 | `credits` decimal(9,2) DEFAULT '10.00', 5 | `last_modified` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 6 | PRIMARY KEY (`id`), 7 | UNIQUE KEY `name` (`name`) 8 | ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/autoinc/mydb/product/users.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `users` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `name` varchar(30) NOT NULL, 4 | `credits` decimal(9,2) DEFAULT 10.00, 5 | `last_modified` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), 6 | PRIMARY KEY (`id`), 7 | UNIQUE KEY `name` (`name`) 8 | ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; 9 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/path_unix.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package system // import "github.com/docker/docker/pkg/system" 4 | 5 | // GetLongPathName converts Windows short pathnames to full pathnames. 6 | // For example C:\Users\ADMIN~1 --> C:\Users\Administrator. 7 | // It is a no-op on non-Windows platforms 8 | func GetLongPathName(path string) (string, error) { 9 | return path, nil 10 | } 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/mksyscall.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build generate 6 | 7 | package windows 8 | 9 | //go:generate go run golang.org/x/sys/windows/mkwinsyscall -output zsyscall_windows.go eventlog.go service.go syscall_windows.go security_windows.go 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/term/term_unix_bsd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build darwin dragonfly freebsd netbsd openbsd 6 | 7 | package term 8 | 9 | import "golang.org/x/sys/unix" 10 | 11 | const ioctlReadTermios = unix.TIOCGETA 12 | const ioctlWriteTermios = unix.TIOCSETA 13 | -------------------------------------------------------------------------------- /dumper/testdata/golden/posts.sql: -------------------------------------------------------------------------------- 1 | /* pre comment preserved */ 2 | CREATE TABLE `posts` ( 3 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 4 | `user_id` bigint(20) unsigned NOT NULL, 5 | `body` varchar(150) DEFAULT NULL, 6 | `created_at` int(10) unsigned DEFAULT NULL, 7 | PRIMARY KEY (`id`), 8 | KEY `user_created` (`user_id`,`created_at`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -- post comment preserved -------------------------------------------------------------------------------- /linter/testdata/offsets.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `posts` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `user_id` bigint(20) unsigned NOT NULL, 4 | `body` text, 5 | `created_at` datetime DEFAULT CURRENT_TIMESTAMP, 6 | `edited_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 7 | PRIMARY KEY (`id`), 8 | KEY `user_created` (`user_id`,`created_at`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/unsupported1.sql: -------------------------------------------------------------------------------- 1 | use product 2 | ALTER TABLE subscriptions 3 | ADD COLUMN subscription_id int(10) unsigned NOT NULL AUTO_INCREMENT FIRST, 4 | ADD KEY sub_id_user (subscription_id, user_id), 5 | AUTO_INCREMENT=456 6 | PARTITION BY RANGE (user_id) 7 | SUBPARTITION BY HASH(post_id) 8 | SUBPARTITIONS 2 ( 9 | PARTITION p0 VALUES LESS THAN (123), 10 | PARTITION p1 VALUES LESS THAN MAXVALUE 11 | ) 12 | ; -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/mknod_windows.go: -------------------------------------------------------------------------------- 1 | package system // import "github.com/docker/docker/pkg/system" 2 | 3 | // Mknod is not implemented on Windows. 4 | func Mknod(path string, mode uint32, dev int) error { 5 | return ErrNotSupportedPlatform 6 | } 7 | 8 | // Mkdev is not implemented on Windows. 9 | func Mkdev(major int64, minor int64) uint32 { 10 | panic("Mkdev not implemented on Windows.") 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/moby/sys/mount/go.sum: -------------------------------------------------------------------------------- 1 | github.com/moby/sys/mountinfo v0.1.0 h1:r8vMRbMAFEAfiNptYVokP+nfxPJzvRuia5e2vzXtENo= 2 | github.com/moby/sys/mountinfo v0.1.0/go.mod h1:w2t2Avltqx8vE7gX5l+QiBKxODu2TX0+Syr3h52Tw4o= 3 | golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae h1:/WDfKMnPU+m5M4xB+6x4kaepxRw6jWvR5iDRdvjHgy8= 4 | golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 5 | -------------------------------------------------------------------------------- /fs/testdata/host/db/posts.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `posts` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `user_id` bigint(20) unsigned NOT NULL, 4 | `body` text, 5 | `created_at` datetime DEFAULT CURRENT_TIMESTAMP, 6 | `edited_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 7 | PRIMARY KEY (`id`), 8 | KEY `user_created` (`user_id`,`created_at`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/archive/time_linux.go: -------------------------------------------------------------------------------- 1 | package archive // import "github.com/docker/docker/pkg/archive" 2 | 3 | import ( 4 | "syscall" 5 | "time" 6 | ) 7 | 8 | func timeToTimespec(time time.Time) (ts syscall.Timespec) { 9 | if time.IsZero() { 10 | // Return UTIME_OMIT special value 11 | ts.Sec = 0 12 | ts.Nsec = (1 << 30) - 2 13 | return 14 | } 15 | return syscall.NsecToTimespec(time.UnixNano()) 16 | } 17 | -------------------------------------------------------------------------------- /fs/testdata/cfgsymlinks2/product/posts.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `posts` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `user_id` bigint(20) unsigned NOT NULL, 4 | `body` text, 5 | `created_at` datetime DEFAULT CURRENT_TIMESTAMP, 6 | `edited_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 7 | PRIMARY KEY (`id`), 8 | KEY `user_created` (`user_id`,`created_at`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /fs/testdata/nodelimiter1.sql: -------------------------------------------------------------------------------- 1 | # This should successfully parse, despite containing a multi-line proc 2 | # without using the DELIMITER command 3 | CREATE PROCEDURE whatever(name varchar(10)) 4 | BEGIN 5 | DECLARE v1 INT; 6 | SET v1=loops; 7 | WHILE v1 > 0 DO 8 | INSERT INTO users (name) values ('\xF0\x9D\x8C\x86'); 9 | SET v1 = v1 - (2 / 2); /* testing // testing */ 10 | END WHILE; 11 | END; 12 | 13 | 14 | -- another comment 15 | 16 | -------------------------------------------------------------------------------- /fs/testdata/nodelimiter2.sql: -------------------------------------------------------------------------------- 1 | # This should NOT parse "correctly" as a single proc without using the DELIMITER 2 | # command, due to the table after 3 | CREATE PROCEDURE whatever(name varchar(10)) 4 | BEGIN 5 | DECLARE v1 INT; 6 | SET v1=loops; 7 | WHILE v1 > 0 DO 8 | INSERT INTO users (name) values ('\xF0\x9D\x8C\x86'); 9 | SET v1 = v1 - (2 / 2); 10 | END WHILE; 11 | END; 12 | CREATE TABLE whatever(id int unsigned NOT NULL PRIMARY KEY); 13 | -------------------------------------------------------------------------------- /fs/testdata/sqlsymlinks/analytics/activity.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `activity` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `action_id` int(10) unsigned NOT NULL, 4 | `ts` int(10) unsigned NOT NULL, 5 | `target_type` varchar(20) DEFAULT NULL, 6 | `target_id` bigint(20) unsigned DEFAULT NULL, 7 | PRIMARY KEY (`user_id`,`action_id`,`ts`), 8 | KEY `by_target` (`target_id`,`target_type`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /fs/testdata/sqlsymlinks/product/posts.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `posts` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `user_id` bigint(20) unsigned NOT NULL, 4 | `body` text, 5 | `created_at` datetime DEFAULT CURRENT_TIMESTAMP, 6 | `edited_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 7 | PRIMARY KEY (`id`), 8 | KEY `user_created` (`user_id`,`created_at`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden/init/mydb/analytics/activity.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `activity` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `action_id` int(10) unsigned NOT NULL, 4 | `ts` int(10) unsigned NOT NULL, 5 | `target_type` varchar(20) DEFAULT NULL, 6 | `target_id` bigint(20) unsigned DEFAULT NULL, 7 | PRIMARY KEY (`user_id`,`action_id`,`ts`), 8 | KEY `by_target` (`target_id`,`target_type`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden/init/mydb/product/posts.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `posts` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `user_id` bigint(20) unsigned NOT NULL, 4 | `body` text, 5 | `created_at` datetime DEFAULT CURRENT_TIMESTAMP, 6 | `edited_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 7 | PRIMARY KEY (`id`), 8 | KEY `user_created` (`user_id`,`created_at`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden/pull1/mydb/analytics/activity.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `activity` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `action_id` int(10) unsigned NOT NULL, 4 | `ts` int(10) unsigned NOT NULL, 5 | `target_type` varchar(20) DEFAULT NULL, 6 | `target_id` bigint(20) unsigned DEFAULT NULL, 7 | PRIMARY KEY (`user_id`,`action_id`,`ts`), 8 | KEY `by_target` (`target_id`,`target_type`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/stat_openbsd.go: -------------------------------------------------------------------------------- 1 | package system // import "github.com/docker/docker/pkg/system" 2 | 3 | import "syscall" 4 | 5 | // fromStatT converts a syscall.Stat_t type to a system.Stat_t type 6 | func fromStatT(s *syscall.Stat_t) (*StatT, error) { 7 | return &StatT{size: s.Size, 8 | mode: uint32(s.Mode), 9 | uid: s.Uid, 10 | gid: s.Gid, 11 | rdev: uint64(s.Rdev), 12 | mtim: s.Mtim}, nil 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/zsyscall_darwin_386.1_13.s: -------------------------------------------------------------------------------- 1 | // go run mkasm_darwin.go 386 2 | // Code generated by the command above; DO NOT EDIT. 3 | 4 | // +build go1.13 5 | 6 | #include "textflag.h" 7 | TEXT ·libc_fdopendir_trampoline(SB),NOSPLIT,$0-0 8 | JMP libc_fdopendir(SB) 9 | TEXT ·libc_closedir_trampoline(SB),NOSPLIT,$0-0 10 | JMP libc_closedir(SB) 11 | TEXT ·libc_readdir_r_trampoline(SB),NOSPLIT,$0-0 12 | JMP libc_readdir_r(SB) 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/zsyscall_darwin_arm.1_13.s: -------------------------------------------------------------------------------- 1 | // go run mkasm_darwin.go arm 2 | // Code generated by the command above; DO NOT EDIT. 3 | 4 | // +build go1.13 5 | 6 | #include "textflag.h" 7 | TEXT ·libc_fdopendir_trampoline(SB),NOSPLIT,$0-0 8 | JMP libc_fdopendir(SB) 9 | TEXT ·libc_closedir_trampoline(SB),NOSPLIT,$0-0 10 | JMP libc_closedir(SB) 11 | TEXT ·libc_readdir_r_trampoline(SB),NOSPLIT,$0-0 12 | JMP libc_readdir_r(SB) 13 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/pull1/mydb/product/posts.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `posts` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `user_id` bigint(20) unsigned NOT NULL, 4 | `body` text, 5 | `created_at` datetime DEFAULT NULL, 6 | `edited_at` datetime DEFAULT NULL, 7 | `status` varchar(20) DEFAULT 'published', 8 | PRIMARY KEY (`id`), 9 | KEY `user_created` (`user_id`,`created_at`) 10 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 11 | -------------------------------------------------------------------------------- /testdata/golden/autoinc/mydb/analytics/activity.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `activity` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `action_id` int(10) unsigned NOT NULL, 4 | `ts` int(10) unsigned NOT NULL, 5 | `target_type` varchar(20) DEFAULT NULL, 6 | `target_id` bigint(20) unsigned DEFAULT NULL, 7 | PRIMARY KEY (`user_id`,`action_id`,`ts`), 8 | KEY `by_target` (`target_id`,`target_type`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden/autoinc/mydb/product/posts.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `posts` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `user_id` bigint(20) unsigned NOT NULL, 4 | `body` text, 5 | `created_at` datetime DEFAULT CURRENT_TIMESTAMP, 6 | `edited_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 7 | PRIMARY KEY (`id`), 8 | KEY `user_created` (`user_id`,`created_at`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden/ignore/mydb/analytics/activity.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `activity` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `action_id` int(10) unsigned NOT NULL, 4 | `ts` int(10) unsigned NOT NULL, 5 | `target_type` varchar(20) DEFAULT NULL, 6 | `target_id` bigint(20) unsigned DEFAULT NULL, 7 | PRIMARY KEY (`user_id`,`action_id`,`ts`), 8 | KEY `by_target` (`target_id`,`target_type`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden/ignore/mydb/product/posts.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `posts` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `user_id` bigint(20) unsigned NOT NULL, 4 | `body` text, 5 | `created_at` datetime DEFAULT CURRENT_TIMESTAMP, 6 | `edited_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 7 | PRIMARY KEY (`id`), 8 | KEY `user_created` (`user_id`,`created_at`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden/routines/mydb/analytics/activity.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `activity` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `action_id` int(10) unsigned NOT NULL, 4 | `ts` int(10) unsigned NOT NULL, 5 | `target_type` varchar(20) DEFAULT NULL, 6 | `target_id` bigint(20) unsigned DEFAULT NULL, 7 | PRIMARY KEY (`user_id`,`action_id`,`ts`), 8 | KEY `by_target` (`target_id`,`target_type`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden/routines/mydb/product/posts.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `posts` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `user_id` bigint(20) unsigned NOT NULL, 4 | `body` text, 5 | `created_at` datetime DEFAULT CURRENT_TIMESTAMP, 6 | `edited_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 7 | PRIMARY KEY (`id`), 8 | KEY `user_created` (`user_id`,`created_at`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/chtimes_unix.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package system // import "github.com/docker/docker/pkg/system" 4 | 5 | import ( 6 | "time" 7 | ) 8 | 9 | // setCTime will set the create time on a file. On Unix, the create 10 | // time is updated as a side effect of setting the modified time, so 11 | // no action is required. 12 | func setCTime(path string, ctime time.Time) error { 13 | return nil 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/lstat_windows.go: -------------------------------------------------------------------------------- 1 | package system // import "github.com/docker/docker/pkg/system" 2 | 3 | import "os" 4 | 5 | // Lstat calls os.Lstat to get a fileinfo interface back. 6 | // This is then copied into our own locally defined structure. 7 | func Lstat(path string) (*StatT, error) { 8 | fi, err := os.Lstat(path) 9 | if err != nil { 10 | return nil, err 11 | } 12 | 13 | return fromStatT(&fi) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/stat_darwin.go: -------------------------------------------------------------------------------- 1 | package system // import "github.com/docker/docker/pkg/system" 2 | 3 | import "syscall" 4 | 5 | // fromStatT converts a syscall.Stat_t type to a system.Stat_t type 6 | func fromStatT(s *syscall.Stat_t) (*StatT, error) { 7 | return &StatT{size: s.Size, 8 | mode: uint32(s.Mode), 9 | uid: s.Uid, 10 | gid: s.Gid, 11 | rdev: uint64(s.Rdev), 12 | mtim: s.Mtimespec}, nil 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/stat_freebsd.go: -------------------------------------------------------------------------------- 1 | package system // import "github.com/docker/docker/pkg/system" 2 | 3 | import "syscall" 4 | 5 | // fromStatT converts a syscall.Stat_t type to a system.Stat_t type 6 | func fromStatT(s *syscall.Stat_t) (*StatT, error) { 7 | return &StatT{size: s.Size, 8 | mode: uint32(s.Mode), 9 | uid: s.Uid, 10 | gid: s.Gid, 11 | rdev: uint64(s.Rdev), 12 | mtim: s.Mtimespec}, nil 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_13.s: -------------------------------------------------------------------------------- 1 | // go run mkasm_darwin.go amd64 2 | // Code generated by the command above; DO NOT EDIT. 3 | 4 | // +build go1.13 5 | 6 | #include "textflag.h" 7 | TEXT ·libc_fdopendir_trampoline(SB),NOSPLIT,$0-0 8 | JMP libc_fdopendir(SB) 9 | TEXT ·libc_closedir_trampoline(SB),NOSPLIT,$0-0 10 | JMP libc_closedir(SB) 11 | TEXT ·libc_readdir_r_trampoline(SB),NOSPLIT,$0-0 12 | JMP libc_readdir_r(SB) 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.s: -------------------------------------------------------------------------------- 1 | // go run mkasm_darwin.go arm64 2 | // Code generated by the command above; DO NOT EDIT. 3 | 4 | // +build go1.13 5 | 6 | #include "textflag.h" 7 | TEXT ·libc_fdopendir_trampoline(SB),NOSPLIT,$0-0 8 | JMP libc_fdopendir(SB) 9 | TEXT ·libc_closedir_trampoline(SB),NOSPLIT,$0-0 10 | JMP libc_closedir(SB) 11 | TEXT ·libc_readdir_r_trampoline(SB),NOSPLIT,$0-0 12 | JMP libc_readdir_r(SB) 13 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | dist 10 | 11 | # Architecture specific extensions/prefixes 12 | *.[568vq] 13 | [568vq].out 14 | 15 | *.cgo1.go 16 | *.cgo2.c 17 | _cgo_defun.c 18 | _cgo_gotypes.go 19 | _cgo_export.* 20 | 21 | _testmain.go 22 | 23 | .DS_Store 24 | 25 | *.exe 26 | *.test 27 | *.prof 28 | 29 | coverage.out 30 | /skeema 31 | -------------------------------------------------------------------------------- /applier/testdata/ddlstatement.sql: -------------------------------------------------------------------------------- 1 | use analytics 2 | CREATE TABLE widget_counts ( 3 | name varchar(40) NOT NULL, 4 | cnt int unsigned, 5 | PRIMARY KEY (name) 6 | ) ENGINE=InnoDB; 7 | DROP TABLE activity; 8 | ALTER TABLE rollups DROP COLUMN value; 9 | ALTER TABLE pageviews DROP COLUMN domain; 10 | INSERT INTO pageviews (url, start_ts, end_ts) VALUES ("foo.html", 123, 456); 11 | ALTER DATABASE analytics CHARACTER SET utf8 COLLATE utf8_bin; 12 | 13 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/init/mydb/analytics/activity.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `activity` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `action_id` int(10) unsigned NOT NULL, 4 | `ts` int(10) unsigned NOT NULL, 5 | `target_type` varchar(20) DEFAULT NULL, 6 | `target_id` bigint(20) unsigned DEFAULT NULL, 7 | PRIMARY KEY (`user_id`,`action_id`,`ts`), 8 | KEY `by_target` (`target_id`,`target_type`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/autoinc/mydb/analytics/activity.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `activity` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `action_id` int(10) unsigned NOT NULL, 4 | `ts` int(10) unsigned NOT NULL, 5 | `target_type` varchar(20) DEFAULT NULL, 6 | `target_id` bigint(20) unsigned DEFAULT NULL, 7 | PRIMARY KEY (`user_id`,`action_id`,`ts`), 8 | KEY `by_target` (`target_id`,`target_type`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/ignore/mydb/analytics/activity.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `activity` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `action_id` int(10) unsigned NOT NULL, 4 | `ts` int(10) unsigned NOT NULL, 5 | `target_type` varchar(20) DEFAULT NULL, 6 | `target_id` bigint(20) unsigned DEFAULT NULL, 7 | PRIMARY KEY (`user_id`,`action_id`,`ts`), 8 | KEY `by_target` (`target_id`,`target_type`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/init/mydb/analytics/activity.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `activity` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `action_id` int(10) unsigned NOT NULL, 4 | `ts` int(10) unsigned NOT NULL, 5 | `target_type` varchar(20) DEFAULT NULL, 6 | `target_id` bigint(20) unsigned DEFAULT NULL, 7 | PRIMARY KEY (`user_id`,`action_id`,`ts`), 8 | KEY `by_target` (`target_id`,`target_type`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/pull1/mydb/analytics/activity.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `activity` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `action_id` int(10) unsigned NOT NULL, 4 | `ts` int(10) unsigned NOT NULL, 5 | `target_type` varchar(20) DEFAULT NULL, 6 | `target_id` bigint(20) unsigned DEFAULT NULL, 7 | PRIMARY KEY (`user_id`,`action_id`,`ts`), 8 | KEY `by_target` (`target_id`,`target_type`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/autoinc/mydb/analytics/activity.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `activity` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `action_id` int(10) unsigned NOT NULL, 4 | `ts` int(10) unsigned NOT NULL, 5 | `target_type` varchar(20) DEFAULT NULL, 6 | `target_id` bigint(20) unsigned DEFAULT NULL, 7 | PRIMARY KEY (`user_id`,`action_id`,`ts`), 8 | KEY `by_target` (`target_id`,`target_type`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/ignore/mydb/analytics/activity.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `activity` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `action_id` int(10) unsigned NOT NULL, 4 | `ts` int(10) unsigned NOT NULL, 5 | `target_type` varchar(20) DEFAULT NULL, 6 | `target_id` bigint(20) unsigned DEFAULT NULL, 7 | PRIMARY KEY (`user_id`,`action_id`,`ts`), 8 | KEY `by_target` (`target_id`,`target_type`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/ignore/mydb/product/posts.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `posts` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `user_id` bigint(20) unsigned NOT NULL, 4 | `body` text, 5 | `created_at` datetime DEFAULT CURRENT_TIMESTAMP, 6 | `edited_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 7 | PRIMARY KEY (`id`), 8 | KEY `user_created` (`user_id`,`created_at`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/init/mydb/analytics/activity.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `activity` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `action_id` int(10) unsigned NOT NULL, 4 | `ts` int(10) unsigned NOT NULL, 5 | `target_type` varchar(20) DEFAULT NULL, 6 | `target_id` bigint(20) unsigned DEFAULT NULL, 7 | PRIMARY KEY (`user_id`,`action_id`,`ts`), 8 | KEY `by_target` (`target_id`,`target_type`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/init/mydb/product/posts.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `posts` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `user_id` bigint(20) unsigned NOT NULL, 4 | `body` text, 5 | `created_at` datetime DEFAULT CURRENT_TIMESTAMP, 6 | `edited_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 7 | PRIMARY KEY (`id`), 8 | KEY `user_created` (`user_id`,`created_at`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/pull1/mydb/analytics/activity.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `activity` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `action_id` int(10) unsigned NOT NULL, 4 | `ts` int(10) unsigned NOT NULL, 5 | `target_type` varchar(20) DEFAULT NULL, 6 | `target_id` bigint(20) unsigned DEFAULT NULL, 7 | PRIMARY KEY (`user_id`,`action_id`,`ts`), 8 | KEY `by_target` (`target_id`,`target_type`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden/unsupported/mydb/analytics/activity.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `activity` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `action_id` int(10) unsigned NOT NULL, 4 | `ts` int(10) unsigned NOT NULL, 5 | `target_type` varchar(20) DEFAULT NULL, 6 | `target_id` bigint(20) unsigned DEFAULT NULL, 7 | PRIMARY KEY (`user_id`,`action_id`,`ts`), 8 | KEY `by_target` (`target_id`,`target_type`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden/unsupported/mydb/product/posts.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `posts` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `user_id` bigint(20) unsigned NOT NULL, 4 | `body` text, 5 | `created_at` datetime DEFAULT CURRENT_TIMESTAMP, 6 | `edited_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 7 | PRIMARY KEY (`id`), 8 | KEY `user_created` (`user_id`,`created_at`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/autoinc/mydb/analytics/activity.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `activity` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `action_id` int(10) unsigned NOT NULL, 4 | `ts` int(10) unsigned NOT NULL, 5 | `target_type` varchar(20) DEFAULT NULL, 6 | `target_id` bigint(20) unsigned DEFAULT NULL, 7 | PRIMARY KEY (`user_id`,`action_id`,`ts`), 8 | KEY `by_target` (`target_id`,`target_type`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/ignore/mydb/analytics/activity.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `activity` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `action_id` int(10) unsigned NOT NULL, 4 | `ts` int(10) unsigned NOT NULL, 5 | `target_type` varchar(20) DEFAULT NULL, 6 | `target_id` bigint(20) unsigned DEFAULT NULL, 7 | PRIMARY KEY (`user_id`,`action_id`,`ts`), 8 | KEY `by_target` (`target_id`,`target_type`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/pull1/mydb/analytics/activity.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `activity` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `action_id` int(10) unsigned NOT NULL, 4 | `ts` int(10) unsigned NOT NULL, 5 | `target_type` varchar(20) DEFAULT NULL, 6 | `target_id` bigint(20) unsigned DEFAULT NULL, 7 | PRIMARY KEY (`user_id`,`action_id`,`ts`), 8 | KEY `by_target` (`target_id`,`target_type`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/routines/mydb/analytics/activity.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `activity` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `action_id` int(10) unsigned NOT NULL, 4 | `ts` int(10) unsigned NOT NULL, 5 | `target_type` varchar(20) DEFAULT NULL, 6 | `target_id` bigint(20) unsigned DEFAULT NULL, 7 | PRIMARY KEY (`user_id`,`action_id`,`ts`), 8 | KEY `by_target` (`target_id`,`target_type`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/routines/mydb/analytics/activity.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `activity` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `action_id` int(10) unsigned NOT NULL, 4 | `ts` int(10) unsigned NOT NULL, 5 | `target_type` varchar(20) DEFAULT NULL, 6 | `target_id` bigint(20) unsigned DEFAULT NULL, 7 | PRIMARY KEY (`user_id`,`action_id`,`ts`), 8 | KEY `by_target` (`target_id`,`target_type`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden-mysql55/unsupported/mydb/analytics/activity.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `activity` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `action_id` int(10) unsigned NOT NULL, 4 | `ts` int(10) unsigned NOT NULL, 5 | `target_type` varchar(20) DEFAULT NULL, 6 | `target_id` bigint(20) unsigned DEFAULT NULL, 7 | PRIMARY KEY (`user_id`,`action_id`,`ts`), 8 | KEY `by_target` (`target_id`,`target_type`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/autoinc/mydb/product/posts.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `posts` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `user_id` bigint(20) unsigned NOT NULL, 4 | `body` text, 5 | `created_at` datetime DEFAULT CURRENT_TIMESTAMP, 6 | `edited_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 7 | PRIMARY KEY (`id`), 8 | KEY `user_created` (`user_id`,`created_at`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/routines/mydb/analytics/activity.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `activity` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `action_id` int(10) unsigned NOT NULL, 4 | `ts` int(10) unsigned NOT NULL, 5 | `target_type` varchar(20) DEFAULT NULL, 6 | `target_id` bigint(20) unsigned DEFAULT NULL, 7 | PRIMARY KEY (`user_id`,`action_id`,`ts`), 8 | KEY `by_target` (`target_id`,`target_type`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/routines/mydb/product/posts.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `posts` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `user_id` bigint(20) unsigned NOT NULL, 4 | `body` text, 5 | `created_at` datetime DEFAULT CURRENT_TIMESTAMP, 6 | `edited_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 7 | PRIMARY KEY (`id`), 8 | KEY `user_created` (`user_id`,`created_at`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/unsupported/mydb/analytics/activity.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `activity` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `action_id` int(10) unsigned NOT NULL, 4 | `ts` int(10) unsigned NOT NULL, 5 | `target_type` varchar(20) DEFAULT NULL, 6 | `target_id` bigint(20) unsigned DEFAULT NULL, 7 | PRIMARY KEY (`user_id`,`action_id`,`ts`), 8 | KEY `by_target` (`target_id`,`target_type`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/unsupported/mydb/product/posts.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `posts` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `user_id` bigint(20) unsigned NOT NULL, 4 | `body` text, 5 | `created_at` datetime DEFAULT CURRENT_TIMESTAMP, 6 | `edited_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 7 | PRIMARY KEY (`id`), 8 | KEY `user_created` (`user_id`,`created_at`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /linter/testdata/validcfg/routines.sql: -------------------------------------------------------------------------------- 1 | DELIMITER // 2 | 3 | CREATE DEFINER=`root`@`127.0.0.1` FUNCTION `func1`(a int, b int) RETURNS int(11) /* annotations: has-routine */ 4 | DETERMINISTIC 5 | BEGIN 6 | return a * b; 7 | END// 8 | 9 | CREATE DEFINER=`nobody`@`localhost` PROCEDURE `proc1`(a int, b int) /* annotations: has-routine, definer */ 10 | DETERMINISTIC 11 | BEGIN 12 | INSERT INTO foo(mult) VALUES (a * b); 13 | END// 14 | 15 | DELIMITER ; 16 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/unsupported/mydb/analytics/activity.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `activity` ( 2 | `user_id` bigint(20) unsigned NOT NULL, 3 | `action_id` int(10) unsigned NOT NULL, 4 | `ts` int(10) unsigned NOT NULL, 5 | `target_type` varchar(20) DEFAULT NULL, 6 | `target_id` bigint(20) unsigned DEFAULT NULL, 7 | PRIMARY KEY (`user_id`,`action_id`,`ts`), 8 | KEY `by_target` (`target_id`,`target_type`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 6 | // +build go1.9 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | type Signal = syscall.Signal 13 | type Errno = syscall.Errno 14 | type SysProcAttr = syscall.SysProcAttr 15 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/init/mydb/product/posts.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `posts` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `user_id` bigint(20) unsigned NOT NULL, 4 | `body` text DEFAULT NULL, 5 | `created_at` datetime DEFAULT current_timestamp(), 6 | `edited_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(), 7 | PRIMARY KEY (`id`), 8 | KEY `user_created` (`user_id`,`created_at`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/pagesize_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | // For Unix, get the pagesize from the runtime. 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | func Getpagesize() int { 14 | return syscall.Getpagesize() 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/internal/gcimporter/newInterface11.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.11 6 | 7 | package gcimporter 8 | 9 | import "go/types" 10 | 11 | func newInterface(methods []*types.Func, embeddeds []types.Type) *types.Interface { 12 | return types.NewInterfaceType(methods, embeddeds) 13 | } 14 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/autoinc/mydb/product/posts.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `posts` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `user_id` bigint(20) unsigned NOT NULL, 4 | `body` text DEFAULT NULL, 5 | `created_at` datetime DEFAULT current_timestamp(), 6 | `edited_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(), 7 | PRIMARY KEY (`id`), 8 | KEY `user_created` (`user_id`,`created_at`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/ignore/mydb/product/posts.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `posts` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `user_id` bigint(20) unsigned NOT NULL, 4 | `body` text DEFAULT NULL, 5 | `created_at` datetime DEFAULT current_timestamp(), 6 | `edited_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(), 7 | PRIMARY KEY (`id`), 8 | KEY `user_created` (`user_id`,`created_at`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/routines/mydb/product/posts.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `posts` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `user_id` bigint(20) unsigned NOT NULL, 4 | `body` text DEFAULT NULL, 5 | `created_at` datetime DEFAULT current_timestamp(), 6 | `edited_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(), 7 | PRIMARY KEY (`id`), 8 | KEY `user_created` (`user_id`,`created_at`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/unsupported/mydb/product/posts.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `posts` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `user_id` bigint(20) unsigned NOT NULL, 4 | `body` text DEFAULT NULL, 5 | `created_at` datetime DEFAULT current_timestamp(), 6 | `edited_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(), 7 | PRIMARY KEY (`id`), 8 | KEY `user_created` (`user_id`,`created_at`) 9 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/readdirent_getdents.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build aix dragonfly freebsd linux netbsd openbsd 6 | 7 | package unix 8 | 9 | // ReadDirent reads directory entries from fd and writes them into buf. 10 | func ReadDirent(fd int, buf []byte) (n int, err error) { 11 | return Getdents(fd, buf) 12 | } 13 | -------------------------------------------------------------------------------- /testdata/push1.sql: -------------------------------------------------------------------------------- 1 | use analytics 2 | DROP TABLE pageviews; 3 | INSERT INTO rollups (metric_id, value) VALUES (444, 14890); 4 | 5 | use product 6 | ALTER TABLE users DROP COLUMN credits; 7 | ALTER TABLE posts ADD COLUMN featured tinyint(1) unsigned NOT NULL; 8 | ALTER DATABASE product CHARACTER SET utf8 COLLATE utf8_swedish_ci; 9 | 10 | CREATE DATABASE bonus; 11 | use bonus; 12 | CREATE TABLE placeholder ( 13 | id int unsigned NOT NULL, 14 | PRIMARY KEY (id) 15 | ) ENGINE=InnoDB; 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux,386 linux,arm linux,mips linux,mipsle 6 | 7 | package unix 8 | 9 | func init() { 10 | // On 32-bit Linux systems, the fcntl syscall that matches Go's 11 | // Flock_t type is SYS_FCNTL64, not SYS_FCNTL. 12 | fcntl64Syscall = SYS_FCNTL64 13 | } 14 | -------------------------------------------------------------------------------- /testdata/golden/pull1/mydb/product/posts.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `posts` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `user_id` bigint(20) unsigned NOT NULL, 4 | `body` text, 5 | `created_at` datetime DEFAULT CURRENT_TIMESTAMP, 6 | `edited_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 7 | `status` varchar(20) DEFAULT 'published', 8 | PRIMARY KEY (`id`), 9 | KEY `user_created` (`user_id`,`created_at`) 10 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 11 | -------------------------------------------------------------------------------- /testdata/golden-mysql80/pull1/mydb/product/posts.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `posts` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `user_id` bigint(20) unsigned NOT NULL, 4 | `body` text, 5 | `created_at` datetime DEFAULT CURRENT_TIMESTAMP, 6 | `edited_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, 7 | `status` varchar(20) DEFAULT 'published', 8 | PRIMARY KEY (`id`), 9 | KEY `user_created` (`user_id`,`created_at`) 10 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build arm,gc,linux 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | // Underlying system call writes to newoffset via pointer. 12 | // Implemented in assembly to avoid allocation. 13 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 14 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/args_windows.go: -------------------------------------------------------------------------------- 1 | package system // import "github.com/docker/docker/pkg/system" 2 | 3 | import ( 4 | "strings" 5 | 6 | "golang.org/x/sys/windows" 7 | ) 8 | 9 | // EscapeArgs makes a Windows-style escaped command line from a set of arguments 10 | func EscapeArgs(args []string) string { 11 | escapedArgs := make([]string, len(args)) 12 | for i, a := range args { 13 | escapedArgs[i] = windows.EscapeArg(a) 14 | } 15 | return strings.Join(escapedArgs, " ") 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/errors.go: -------------------------------------------------------------------------------- 1 | package system // import "github.com/docker/docker/pkg/system" 2 | 3 | import ( 4 | "errors" 5 | ) 6 | 7 | var ( 8 | // ErrNotSupportedPlatform means the platform is not supported. 9 | ErrNotSupportedPlatform = errors.New("platform and architecture is not supported") 10 | 11 | // ErrNotSupportedOperatingSystem means the operating system is not supported. 12 | ErrNotSupportedOperatingSystem = errors.New("operating system is not supported") 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/process_windows.go: -------------------------------------------------------------------------------- 1 | package system // import "github.com/docker/docker/pkg/system" 2 | 3 | import "os" 4 | 5 | // IsProcessAlive returns true if process with a given pid is running. 6 | func IsProcessAlive(pid int) bool { 7 | _, err := os.FindProcess(pid) 8 | 9 | return err == nil 10 | } 11 | 12 | // KillProcess force-stops a process. 13 | func KillProcess(pid int) { 14 | p, err := os.FindProcess(pid) 15 | if err == nil { 16 | _ = p.Kill() 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/lint/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to Golint 2 | 3 | ## Before filing an issue: 4 | 5 | ### Are you having trouble building golint? 6 | 7 | Check you have the latest version of its dependencies. Run 8 | ``` 9 | go get -u golang.org/x/lint/golint 10 | ``` 11 | If you still have problems, consider searching for existing issues before filing a new issue. 12 | 13 | ## Before sending a pull request: 14 | 15 | Have you understood the purpose of golint? Make sure to carefully read `README`. 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/pwd_go15_plan9.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build go1.5 6 | 7 | package plan9 8 | 9 | import "syscall" 10 | 11 | func fixwd() { 12 | syscall.Fixwd() 13 | } 14 | 15 | func Getwd() (wd string, err error) { 16 | return syscall.Getwd() 17 | } 18 | 19 | func Chdir(path string) error { 20 | return syscall.Chdir(path) 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/skeema/tengo/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/skeema/tengo 2 | 3 | go 1.14 4 | 5 | require ( 6 | github.com/VividCortex/mysqlerr v0.0.0-20170204212430-6c6b55f8796f 7 | github.com/fsouza/go-dockerclient v1.6.6 8 | github.com/go-sql-driver/mysql v1.5.0 9 | github.com/jmoiron/sqlx v1.2.0 10 | github.com/lib/pq v1.2.0 // indirect 11 | github.com/mattn/go-sqlite3 v1.11.0 // indirect 12 | github.com/nozzle/throttler v0.0.0-20180817012639-2ea982251481 13 | github.com/pmezard/go-difflib v1.0.0 14 | ) 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_aix_ppc64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for ppc64, AIX are implemented in runtime/syscall_aix.go 11 | // 12 | 13 | TEXT ·syscall6(SB),NOSPLIT,$0-88 14 | JMP syscall·syscall6(SB) 15 | 16 | TEXT ·rawSyscall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSyscall6(SB) 18 | -------------------------------------------------------------------------------- /testdata/golden-mariadb102/pull1/mydb/product/posts.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `posts` ( 2 | `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, 3 | `user_id` bigint(20) unsigned NOT NULL, 4 | `body` text DEFAULT NULL, 5 | `created_at` datetime DEFAULT current_timestamp(), 6 | `edited_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(), 7 | `status` varchar(20) DEFAULT 'published', 8 | PRIMARY KEY (`id`), 9 | KEY `user_created` (`user_id`,`created_at`) 10 | ) ENGINE=InnoDB DEFAULT CHARSET=latin1; 11 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/xattrs_unsupported.go: -------------------------------------------------------------------------------- 1 | // +build !linux 2 | 3 | package system // import "github.com/docker/docker/pkg/system" 4 | 5 | // Lgetxattr is not supported on platforms other than linux. 6 | func Lgetxattr(path string, attr string) ([]byte, error) { 7 | return nil, ErrNotSupportedPlatform 8 | } 9 | 10 | // Lsetxattr is not supported on platforms other than linux. 11 | func Lsetxattr(path string, attr string, data []byte, flags int) error { 12 | return ErrNotSupportedPlatform 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/moby/term/tc.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package term 4 | 5 | import ( 6 | "syscall" 7 | "unsafe" 8 | 9 | "golang.org/x/sys/unix" 10 | ) 11 | 12 | func tcget(fd uintptr, p *Termios) syscall.Errno { 13 | _, _, err := unix.Syscall(unix.SYS_IOCTL, fd, uintptr(getTermios), uintptr(unsafe.Pointer(p))) 14 | return err 15 | } 16 | 17 | func tcset(fd uintptr, p *Termios) syscall.Errno { 18 | _, _, err := unix.Syscall(unix.SYS_IOCTL, fd, setTermios, uintptr(unsafe.Pointer(p))) 19 | return err 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/ioutils/temp_windows.go: -------------------------------------------------------------------------------- 1 | package ioutils // import "github.com/docker/docker/pkg/ioutils" 2 | 3 | import ( 4 | "io/ioutil" 5 | 6 | "github.com/docker/docker/pkg/longpath" 7 | ) 8 | 9 | // TempDir is the equivalent of ioutil.TempDir, except that the result is in Windows longpath format. 10 | func TempDir(dir, prefix string) (string, error) { 11 | tempDir, err := ioutil.TempDir(dir, prefix) 12 | if err != nil { 13 | return "", err 14 | } 15 | return longpath.AddPrefix(tempDir), nil 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_solaris_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go 11 | // 12 | 13 | TEXT ·sysvicall6(SB),NOSPLIT,$0-88 14 | JMP syscall·sysvicall6(SB) 15 | 16 | TEXT ·rawSysvicall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSysvicall6(SB) 18 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/go-digest/MAINTAINERS: -------------------------------------------------------------------------------- 1 | Aaron Lehmann (@aaronlehmann) 2 | Brandon Philips (@philips) 3 | Brendan Burns (@brendandburns) 4 | Derek McGowan (@dmcgowan) 5 | Jason Bouzane (@jbouzane) 6 | John Starks (@jstarks) 7 | Jonathan Boulle (@jonboulle) 8 | Stephen Day (@stevvooe) 9 | Vincent Batts (@vbatts) 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/lint/golint/importcomment.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2018 The Go Authors. All rights reserved. 2 | // 3 | // Use of this source code is governed by a BSD-style 4 | // license that can be found in the LICENSE file or at 5 | // https://developers.google.com/open-source/licenses/bsd. 6 | 7 | // +build go1.12 8 | 9 | // Require use of the correct import path only for Go 1.12+ users, so 10 | // any breakages coincide with people updating their CI configs or 11 | // whatnot. 12 | 13 | package main // import "golang.org/x/lint/golint" 14 | -------------------------------------------------------------------------------- /vendor/github.com/jmoiron/sqlx/go.sum: -------------------------------------------------------------------------------- 1 | github.com/go-sql-driver/mysql v1.4.0 h1:7LxgVwFb2hIQtMm87NdgAVfXjnt4OePseqT1tKx+opk= 2 | github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= 3 | github.com/lib/pq v1.0.0 h1:X5PMW56eZitiTeO7tKzZxFCSpbFZJtkMMooicw2us9A= 4 | github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= 5 | github.com/mattn/go-sqlite3 v1.9.0 h1:pDRiWfl+++eC2FEFRy6jXmQlvp4Yh3z1MJKg4UeYM/4= 6 | github.com/mattn/go-sqlite3 v1.9.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc= 7 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/meminfo.go: -------------------------------------------------------------------------------- 1 | package system // import "github.com/docker/docker/pkg/system" 2 | 3 | // MemInfo contains memory statistics of the host system. 4 | type MemInfo struct { 5 | // Total usable RAM (i.e. physical RAM minus a few reserved bits and the 6 | // kernel binary code). 7 | MemTotal int64 8 | 9 | // Amount of free memory. 10 | MemFree int64 11 | 12 | // Total amount of swap space available. 13 | SwapTotal int64 14 | 15 | // Amount of swap space that is currently unused. 16 | SwapFree int64 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/pwd_plan9.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build !go1.5 6 | 7 | package plan9 8 | 9 | func fixwd() { 10 | } 11 | 12 | func Getwd() (wd string, err error) { 13 | fd, err := open(".", O_RDONLY) 14 | if err != nil { 15 | return "", err 16 | } 17 | defer Close(fd) 18 | return Fd2path(fd) 19 | } 20 | 21 | func Chdir(path string) error { 22 | return chdir(path) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build gccgo,linux,amd64 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | //extern gettimeofday 12 | func realGettimeofday(*Timeval, *byte) int32 13 | 14 | func gettimeofday(tv *Timeval) (err syscall.Errno) { 15 | r := realGettimeofday(tv, nil) 16 | if r < 0 { 17 | return syscall.GetErrno() 18 | } 19 | return 0 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/idtools/usergroupadd_unsupported.go: -------------------------------------------------------------------------------- 1 | // +build !linux 2 | 3 | package idtools // import "github.com/docker/docker/pkg/idtools" 4 | 5 | import "fmt" 6 | 7 | // AddNamespaceRangesUser takes a name and finds an unused uid, gid pair 8 | // and calls the appropriate helper function to add the group and then 9 | // the user to the group in /etc/group and /etc/passwd respectively. 10 | func AddNamespaceRangesUser(name string) (int, int, error) { 11 | return -1, -1, fmt.Errorf("No support for adding users or groups on this OS") 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/alecthomas/participle/go.sum: -------------------------------------------------------------------------------- 1 | github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= 2 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 3 | github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= 4 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 5 | github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w= 6 | github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= 7 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/init.go: -------------------------------------------------------------------------------- 1 | package system // import "github.com/docker/docker/pkg/system" 2 | 3 | import ( 4 | "syscall" 5 | "time" 6 | "unsafe" 7 | ) 8 | 9 | // Used by chtimes 10 | var maxTime time.Time 11 | 12 | func init() { 13 | // chtimes initialization 14 | if unsafe.Sizeof(syscall.Timespec{}.Nsec) == 8 { 15 | // This is a 64 bit timespec 16 | // os.Chtimes limits time to the following 17 | maxTime = time.Unix(0, 1<<63-1) 18 | } else { 19 | // This is a 32 bit timespec 20 | maxTime = time.Unix(1<<31-1, 0) 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/Azure/go-ansiterm/ground_state.go: -------------------------------------------------------------------------------- 1 | package ansiterm 2 | 3 | type groundState struct { 4 | baseState 5 | } 6 | 7 | func (gs groundState) Handle(b byte) (s state, e error) { 8 | gs.parser.context.currentChar = b 9 | 10 | nextState, err := gs.baseState.Handle(b) 11 | if nextState != nil || err != nil { 12 | return nextState, err 13 | } 14 | 15 | switch { 16 | case sliceContains(printables, b): 17 | return gs, gs.parser.print() 18 | 19 | case sliceContains(executors, b): 20 | return gs, gs.parser.execute() 21 | } 22 | 23 | return gs, nil 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/fsouza/go-dockerclient/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: \ 2 | all \ 3 | lint \ 4 | pretest \ 5 | test \ 6 | integration 7 | 8 | 9 | ifeq "$(strip $(shell go env GOARCH))" "amd64" 10 | RACE_FLAG := -race 11 | endif 12 | 13 | all: test 14 | 15 | lint: 16 | cd /tmp && GO111MODULE=on go get github.com/golangci/golangci-lint/cmd/golangci-lint@latest 17 | golangci-lint run 18 | 19 | pretest: lint 20 | 21 | gotest: 22 | go test $(RACE_FLAG) -vet all ./... 23 | 24 | test: pretest gotest 25 | 26 | integration: 27 | go test -tags docker_integration -run TestIntegration -v 28 | -------------------------------------------------------------------------------- /testdata/ignore1.sql: -------------------------------------------------------------------------------- 1 | use product 2 | CREATE TABLE _widgets ( 3 | id int unsigned NOT NULL AUTO_INCREMENT, 4 | name varchar(30), 5 | PRIMARY KEY (id), 6 | UNIQUE KEY name_idx (name) 7 | ) ENGINE=InnoDB; 8 | 9 | use analytics 10 | CREATE TABLE _trending ( 11 | content_id int unsigned NOT NULL, 12 | content_type char(10) NOT NULL, 13 | PRIMARY KEY (content_id, content_type) 14 | ) ENGINE=InnoDB; 15 | 16 | CREATE DATABASE archives CHARACTER SET utf8mb4; 17 | use archives 18 | CREATE TABLE foo ( 19 | id int unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY 20 | ) ENGINE=InnoDB; 21 | 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build plan9,!race 6 | 7 | package plan9 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | const raceenabled = false 14 | 15 | func raceAcquire(addr unsafe.Pointer) { 16 | } 17 | 18 | func raceReleaseMerge(addr unsafe.Pointer) { 19 | } 20 | 21 | func raceReadRange(addr unsafe.Pointer, len int) { 22 | } 23 | 24 | func raceWriteRange(addr unsafe.Pointer, len int) { 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build linux,gc 6 | 7 | package unix 8 | 9 | // SyscallNoError may be used instead of Syscall for syscalls that don't fail. 10 | func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 11 | 12 | // RawSyscallNoError may be used instead of RawSyscall for syscalls that don't 13 | // fail. 14 | func RawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 15 | -------------------------------------------------------------------------------- /vendor/github.com/docker/docker/pkg/system/lstat_unix.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | 3 | package system // import "github.com/docker/docker/pkg/system" 4 | 5 | import ( 6 | "os" 7 | "syscall" 8 | ) 9 | 10 | // Lstat takes a path to a file and returns 11 | // a system.StatT type pertaining to that file. 12 | // 13 | // Throws an error if the file does not exist 14 | func Lstat(path string) (*StatT, error) { 15 | s := &syscall.Stat_t{} 16 | if err := syscall.Lstat(path, s); err != nil { 17 | return nil, &os.PathError{Op: "Lstat", Path: path, Err: err} 18 | } 19 | return fromStatT(s) 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build windows,!race 6 | 7 | package windows 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | const raceenabled = false 14 | 15 | func raceAcquire(addr unsafe.Pointer) { 16 | } 17 | 18 | func raceReleaseMerge(addr unsafe.Pointer) { 19 | } 20 | 21 | func raceReadRange(addr unsafe.Pointer, len int) { 22 | } 23 | 24 | func raceWriteRange(addr unsafe.Pointer, len int) { 25 | } 26 | -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2021 Skeema LLC 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /vendor/github.com/opencontainers/runc/libcontainer/system/sysconfig_notcgo.go: -------------------------------------------------------------------------------- 1 | // +build !cgo windows 2 | 3 | package system 4 | 5 | func GetClockTicks() int { 6 | // TODO figure out a better alternative for platforms where we're missing cgo 7 | // 8 | // TODO Windows. This could be implemented using Win32 QueryPerformanceFrequency(). 9 | // https://msdn.microsoft.com/en-us/library/windows/desktop/ms644905(v=vs.85).aspx 10 | // 11 | // An example of its usage can be found here. 12 | // https://msdn.microsoft.com/en-us/library/windows/desktop/dn553408(v=vs.85).aspx 13 | 14 | return 100 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/plan9/mksysnum_plan9.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Copyright 2009 The Go Authors. All rights reserved. 3 | # Use of this source code is governed by a BSD-style 4 | # license that can be found in the LICENSE file. 5 | 6 | COMMAND="mksysnum_plan9.sh $@" 7 | 8 | cat <