Skip to content

Commit

Permalink
Fix syncing camel-cased Postgres tables
Browse files Browse the repository at this point in the history
  • Loading branch information
exAspArk committed Nov 12, 2024
1 parent 90e705a commit cfdb014
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

#### [v0.4.1](https://github.com/BemiHQ/BemiDB/compare/v0.4.0...v0.4.1) - 2024-11-12

- Fix syncing camel-cased Postgres tables

#### [v0.4.0](https://github.com/BemiHQ/BemiDB/compare/v0.3.2...v0.4.0) - 2024-11-11

- Serialize user-defined types as strings
Expand Down
2 changes: 1 addition & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

VERSION="0.4.0"
VERSION="0.4.1"

# Detect OS and architecture
OS=$(uname -s | tr '[:upper:]' '[:lower:]')
Expand Down
6 changes: 5 additions & 1 deletion src/custom_types.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
package main

import (
"fmt"
)

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

type OrderedMap struct {
Expand Down Expand Up @@ -58,5 +62,5 @@ type SchemaTable struct {
}

func (schemaTable SchemaTable) String() string {
return schemaTable.Schema + "." + schemaTable.Table
return fmt.Sprintf(`"%s"."%s"`, schemaTable.Schema, schemaTable.Table)
}
2 changes: 1 addition & 1 deletion src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
)

const VERSION = "0.4.0"
const VERSION = "0.4.1"

func main() {
flag.Parse()
Expand Down

0 comments on commit cfdb014

Please sign in to comment.