dolthub / dolt

Dolt – Git for Data
https://www.dolthub.com
Apache License 2.0
18k stars 516 forks source link

[no-release-notes] support workflow yaml importing/exporting/listing #8549

Closed coffeegoddd closed 2 weeks ago

coffeegoddd commented 2 weeks ago

This PR adds the dolt ci import, dolt ci export, and dolt ci ls commands.

dolt ci import imports a workflow file and commits the data. dolt ci export exports a workflow yaml file to the working directory. dolt ci ls lists all workflows in the db.

This PR also uses context keys to allow dolt_ci tables to produce a diff, but otherwise hides the tables them from the user. This is necessary/helpful for debugging.

This PR also refactors the CreateDoltCITables method to use simple sql queries to create each table. It then runs a delete query to create/resolve all indexes.

coffeegoddd commented 2 weeks ago

@coffeegoddd DOLT

comparing_percentages
100.000000 to 100.000000
version result total
4fdffc2 ok 5937457
version total_tests
4fdffc2 5937457
correctness_percentage
100.0
coffeegoddd commented 2 weeks ago

@coffeegoddd DOLT

comparing_percentages
100.000000 to 100.000000
version result total
b4cd7a0 ok 5937457
version total_tests
b4cd7a0 5937457
correctness_percentage
100.0
coffeegoddd commented 2 weeks ago

@coffeegoddd DOLT

comparing_percentages
100.000000 to 100.000000
version result total
5dc5b42 ok 5937457
version total_tests
5dc5b42 5937457
correctness_percentage
100.0
coffeegoddd commented 2 weeks ago

@coffeegoddd DOLT

comparing_percentages
100.000000 to 100.000000
version result total
08a63e6 ok 5937457
version total_tests
08a63e6 5937457
correctness_percentage
100.0