data_drain 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 32ba4ab76fac41245dfe1b2eaa012b8c036dd63f7ca4a43679e55cc39bfe5420
4
- data.tar.gz: 3fe7f3a01102affbd5b7dbb7726e177ba5c64a1a80cee65d78b015d5972221c2
3
+ metadata.gz: d7c2acf6629c9636f5ea3e56d8fe903197058c072d778226422e9500497284f8
4
+ data.tar.gz: 9099820c61b9601d39bd55bc13297453b8587327b744429a86e69b17eb91320f
5
5
  SHA512:
6
- metadata.gz: dcf0fbfb92df31e16fb6269355af8a12170c5a955ad005908a63f5e402856c5351be7cf35d62d91b02e808fe5f71747e8c3d85580174f5b205704878b678951e
7
- data.tar.gz: a22ad87b8e00ad230beb0ff2af04db2bdaad0505f86ec002037e896e7c02d1d5365e86d5141a370af71570978afb06df654ae2c8790e15cb58e55b41d3f70bd7
6
+ metadata.gz: 8536c37bff85564fa97800876196407ad59aec122ca563bfdc9dd84dc15692c8a3fcc23e7b71a2d22514fefbd9e8ccb6685a8c09066b6549fb504bde56dfb1e2
7
+ data.tar.gz: fe2385046cab1246d2facbd26508a3763fb8bba46c3236889c143f868c070f52d8a2b719877370d12a224c4a05b5d1f1bcf8b35cb831323e23ade923e821da89
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.2] - 2026-03-16
4
+
5
+ - Cambiamos postgres_scan por postgres_query
6
+
3
7
  ## [0.1.1] - 2026-03-16
4
8
 
5
9
  - Se agrega al configure la posibliidad de agregar el limit de ram para duckdb.
@@ -91,7 +91,7 @@ module DataDrain
91
91
  def get_postgres_count
92
92
  query = <<~SQL
93
93
  SELECT COUNT(*)
94
- FROM postgres_scan('#{@config.duckdb_connection_string}', 'public', '#{@table_name}')
94
+ FROM postgres_query('#{@config.duckdb_connection_string}', 'public', '#{@table_name}')
95
95
  WHERE #{base_where_sql}
96
96
  SQL
97
97
  @duckdb.query(query).first.first
@@ -108,7 +108,7 @@ module DataDrain
108
108
  query = <<~SQL
109
109
  COPY (
110
110
  SELECT #{@select_sql}
111
- FROM postgres_scan('#{@config.duckdb_connection_string}', 'public', '#{@table_name}')
111
+ FROM postgres_query('#{@config.duckdb_connection_string}', 'public', '#{@table_name}')
112
112
  WHERE #{base_where_sql}
113
113
  ) TO '#{dest_path}'
114
114
  (
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DataDrain
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: data_drain
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel