-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Started to restructure and add more logic for caching.
- Loading branch information
Showing
7 changed files
with
316 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package column | ||
|
||
import "github.com/AmadlaOrg/hery/cache/database" | ||
|
||
var ( | ||
// Id returns simple database column structure for `Id` | ||
Id = database.Column{ | ||
ColumnName: "Id", | ||
DataType: "string", | ||
Default: `( | ||
lower(hex(randomblob(4)) | ||
|| '-' | ||
|| hex(randomblob(2)) | ||
|| '-4' | ||
|| substr(hex(randomblob(2)), 2) | ||
|| '-' | ||
|| substr('89ab', abs(random() % 4) + 1, 1) | ||
|| substr(hex(randomblob(2)), 2) | ||
|| '-' | ||
|| hex(randomblob(6))) | ||
)`, | ||
} | ||
InsertDateTime = database.Column{ | ||
ColumnName: "InsertDateTime", | ||
DataType: "DATETIME", | ||
} | ||
UpdateDateTime = database.Column{ | ||
ColumnName: "UpdateDateTime", | ||
DataType: "DATETIME", | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.