SQLRepositoryDialect defines the SQL dialect for the SQL repository.
| 6 | |
| 7 | // SQLRepositoryDialect defines the SQL dialect for the SQL repository. |
| 8 | type SQLRepositoryDialect interface { |
| 9 | // CreateTable returns the SQL statement to create the repository table. |
| 10 | CreateTable() string |
| 11 | |
| 12 | // DropTable returns the SQL statement to drop the repository table. |
| 13 | DropTable() string |
| 14 | |
| 15 | // Assets returns the SQL statement to get the names of all assets in the respository. |
| 16 | Assets() string |
| 17 | |
| 18 | // GetSince returns the SQL statement to query snapshots for the asset with the given name since the given date. |
| 19 | GetSince() string |
| 20 | |
| 21 | // LastDate returns the SQL statement to query for the last date for the asset with the given name. |
| 22 | LastDate() string |
| 23 | |
| 24 | // Appends returns the SQL statement to add the given snapshots to the asset with the given name. |
| 25 | Append() string |
| 26 | } |
no outgoing calls
no test coverage detected