MCPcopy Create free account
hub / github.com/cinar/indicator / SQLRepositoryDialect

Interface SQLRepositoryDialect

asset/sql_repository_dialect.go:8–26  ·  view source on GitHub ↗

SQLRepositoryDialect defines the SQL dialect for the SQL repository.

Source from the content-addressed store, hash-verified

6
7// SQLRepositoryDialect defines the SQL dialect for the SQL repository.
8type 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}

Callers 2

NewSQLRepositoryFunction · 0.65
DropMethod · 0.65

Implementers 1

mockDialectasset/sql_repository_test.go

Calls

no outgoing calls

Tested by

no test coverage detected