db-mariadb 0.11.0 → 0.11.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 13a5aebccae4f884ebb2993b3e2df5a5aa9ae91ee67d6615cbdde533b7aa3941
4
- data.tar.gz: ad2d40e822d82331db871fa10e75a6918281269e7aa26d10ef34d21b6edff4ca
3
+ metadata.gz: 95566c6a63ab1bf4652c2cb71c01f9617f8ad942c30ec033537cd644f119927e
4
+ data.tar.gz: 0c5ea74e6b1230c6ad49dad343342553bebba46ef9bb032dae0088c3d13891ba
5
5
  SHA512:
6
- metadata.gz: 37e5e16e1c3b3cf92845063ae40d9f9697766cc903bc6f08ce374b28bef148b21ae68fdeee70af5c70fd5058359da11de57272ad8e757270af25bb692653cd33
7
- data.tar.gz: 103522d5f59fa9caf5b6b7c9b38f6e8da84ef846f2cf7a13a34d52e624dc2e29bed9dcd12bc73f33254c0cde2ef4019956d48a9bb0f6c3530bb7b3a3cf3432aa
6
+ metadata.gz: 6eebe56df786458477e5d822335f56754c0074e11996d9aca17e24ee9bd2b88571e65fdc051df3290f8dff4e4c3b45aaf1973f7fa29f969985f58aa7d7efbc03
7
+ data.tar.gz: 65fef4dcfa24803c438b506c10cf9e45b66acd341f7bf2c6d5bc4b83a4964d6ff38037e18910ddfe2b915ec209ab3f0fb621276bf42220192c8f729f7f13e941
checksums.yaml.gz.sig CHANGED
Binary file
@@ -52,7 +52,7 @@ module DB
52
52
  ffi_attach_function :mysql_real_escape_string, [:pointer, :pointer, :string, :size_t], :size_t
53
53
 
54
54
  class Connection < FFI::Pointer
55
- def self.connect(wrapper: IO, host: 'localhost', username: nil, password: nil, database: nil, port: 0, unix_socket: nil, client_flags: 0, compression: false, types: DEFAULT_TYPES, **options)
55
+ def self.connect(host: 'localhost', username: nil, password: nil, database: nil, port: 0, unix_socket: nil, client_flags: 0, compression: false, types: DEFAULT_TYPES, **options)
56
56
  pointer = Native.mysql_init(nil)
57
57
  Native.mysql_options(pointer, MYSQL_OPT_NONBLOCK, nil)
58
58
 
@@ -50,6 +50,7 @@ module DB
50
50
  fields.map{|field| @types[field.type]}
51
51
  end
52
52
 
53
+ # In the context of unbuffered queries, this is the number of rows that have been fetched so far.
53
54
  def row_count
54
55
  Native.mysql_num_rows(self)
55
56
  end
@@ -5,6 +5,6 @@
5
5
 
6
6
  module DB
7
7
  module MariaDB
8
- VERSION = "0.11.0"
8
+ VERSION = "0.11.2"
9
9
  end
10
10
  end
data/readme.md CHANGED
@@ -1,14 +1,14 @@
1
1
  # DB::MariaDB
2
2
 
3
- A light-weight wrapper for Ruby connecting to MariaDB and MySQL servers.
3
+ A light-weight wrapper for Ruby connecting to MariaDB and MySQL servers. This gem provides an adapter for the [`db` gem](https://github.com/socketry/db). You should use the `db` gem directly as it provides a unified interface for all database adapters and contains the majority of the documentation.
4
4
 
5
5
  [![Development Status](https://github.com/socketry/db-mariadb/workflows/Test/badge.svg)](https://github.com/socketry/db-mariadb/actions?workflow=Test)
6
6
 
7
7
  ## Usage
8
8
 
9
- Please see the [project documentation](https://github.com/socketry/db-mariadb) for more details.
9
+ Please see the [project documentation](https://socketry.github.io/db-mariadb/) for more details.
10
10
 
11
- - [Getting Started](https://github.com/socketry/db-mariadbguides/getting-started/index) - This guide explains how to get started with the `db-mariadb` gem.
11
+ - [Getting Started](https://socketry.github.io/db-mariadb/guides/getting-started/index) - This guide explains how to get started with the `db-mariadb` gem.
12
12
 
13
13
  ## Contributing
14
14
 
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: db-mariadb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -38,7 +38,7 @@ cert_chain:
38
38
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
39
39
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
40
40
  -----END CERTIFICATE-----
41
- date: 2024-07-26 00:00:00.000000000 Z
41
+ date: 2024-07-27 00:00:00.000000000 Z
42
42
  dependencies:
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: async-pool
@@ -104,6 +104,8 @@ homepage: https://github.com/socketry/db-mariadb
104
104
  licenses:
105
105
  - MIT
106
106
  metadata:
107
+ documentation_uri: https://socketry.github.io/db-mariadb/
108
+ funding_uri: https://github.com/sponsors/ioquatix
107
109
  source_code_uri: https://github.com/socketry/db-mariadb.git
108
110
  post_install_message:
109
111
  rdoc_options: []
metadata.gz.sig CHANGED
Binary file