Migration to Bitech

This commit is contained in:
Hein
2025-11-10 11:43:15 +02:00
parent c8704c07dd
commit 3eb17666bf
21 changed files with 479 additions and 124 deletions

View File

@@ -4,12 +4,13 @@ import (
"reflect"
"strings"
"github.com/Warky-Devs/ResolveSpec/pkg/common"
"github.com/bitechdev/ResolveSpec/pkg/common"
)
// parseTableName splits a table name that may contain schema into separate schema and table
// For example: "public.users" -> ("public", "users")
// "users" -> ("", "users")
//
// "users" -> ("", "users")
func parseTableName(fullTableName string) (schema, table string) {
if idx := strings.LastIndex(fullTableName, "."); idx != -1 {
return fullTableName[:idx], fullTableName[idx+1:]