Updated Database Interface, Added Bun Support

This commit is contained in:
2025-08-14 22:36:04 +02:00
parent f3ca6c356a
commit 399cea9335
18 changed files with 2383 additions and 55 deletions

View File

@@ -1,5 +1,6 @@
package resolvespec
// Legacy interfaces for backward compatibility
type GormTableNameInterface interface {
TableName() string
}
@@ -19,3 +20,8 @@ func (r *GormTableCRUDRequest) SetRequest(request string) {
func (r GormTableCRUDRequest) GetRequest() string {
return *r.CRUDRequest
}
// New interfaces that replace the legacy ones above
// These are now defined in database.go:
// - TableNameProvider (replaces GormTableNameInterface)
// - SchemaProvider (replaces GormTableSchemaInterface)