Skip to content

Commit 8d4164f

Browse files
committed
build(dependencies): Update mysql_client_plus version to 0.1.1
1 parent 6927b68 commit 8d4164f

File tree

5 files changed

+28
-7
lines changed

5 files changed

+28
-7
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [2.1.10]
2+
3+
* Update mysql_client_plus version to 0.1.1
4+
15
## [2.1.9]
26

37
* Updated mysql_client_plus to version ^0.1.0
@@ -120,7 +124,7 @@
120124
## [1.0.3]
121125

122126
* Fix Bug [#3](https://github.com/biner88/mysql_utils/issues/3)
123-
* Add Where `in`, `between`, `notbetween` and demo.
127+
* Add Where `in`, `between`, `notbetween` and demo.
124128

125129
## [1.0.2]
126130

example/pubspec.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ packages:
3737
dependency: transitive
3838
description:
3939
name: mysql_client_plus
40-
sha256: "35654fc45957becc1fcbb3149612df2a6adebc888370734895ec614e6b97231a"
40+
sha256: a6984b3bcfe3311b1a73d5bd3a8400535b6aa3c74e9ffae3d8aead01256ba89c
4141
url: "https://pub.dev"
4242
source: hosted
43-
version: "0.1.0"
43+
version: "0.1.1"
4444
mysql_utils:
4545
dependency: "direct main"
4646
description:

pubspec.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,10 @@ packages:
189189
dependency: "direct main"
190190
description:
191191
name: mysql_client_plus
192-
sha256: "35654fc45957becc1fcbb3149612df2a6adebc888370734895ec614e6b97231a"
192+
sha256: a6984b3bcfe3311b1a73d5bd3a8400535b6aa3c74e9ffae3d8aead01256ba89c
193193
url: "https://pub.dev"
194194
source: hosted
195-
version: "0.1.0"
195+
version: "0.1.1"
196196
node_preamble:
197197
dependency: transitive
198198
description:

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name: mysql_utils
22
description: This is [mysql_client_plus] help library,This makes mysql easier to use and simple.
3-
version: 2.1.9
3+
version: 2.1.10
44
homepage: https://github.com/biner88/mysql_utils
55
repository: https://github.com/biner88/mysql_utils
66
issue_tracker: https://github.com/biner88/mysql_utils/issues
77
environment:
88
sdk: ">=2.12.0 <4.0.0"
99

1010
dependencies:
11-
mysql_client_plus: ^0.1.0
11+
mysql_client_plus: ^0.1.1
1212
dev_dependencies:
1313
lints: ^5.1.1
1414
test: ^1.26.0

test/json_test.dart

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ void main() {
4646
CREATE TABLE test_data4 (
4747
id INT AUTO_INCREMENT PRIMARY KEY,
4848
blob_col BLOB,
49+
text_col TEXT,
4950
json_col JSON
5051
);
5152
''');
@@ -54,6 +55,8 @@ void main() {
5455
test('Execute: insert data ', () async {
5556
await db.insert(table: 'test_data4', insertData: {
5657
'json_col': {'json': 'json_value'},
58+
'text_col':
59+
'You can\'t have a better tomorrow if you are thinking about yesterday all the time.',
5760
'blob_col': Uint8List.fromList([1, 2, 3, 4, 5]),
5861
});
5962
});
@@ -62,6 +65,7 @@ void main() {
6265
table: 'test_data4',
6366
fields: '*',
6467
);
68+
print(req1['json_col']);
6569
expect(req1['json_col']['json'], equals('json_value'));
6670
});
6771
test('Execute: getOne blob', () async {
@@ -70,8 +74,21 @@ void main() {
7074
fields: '*',
7175
excludeFields: 'json_col',
7276
);
77+
print(req1['blob_col']);
7378
expect(req1['blob_col'], equals([1, 2, 3, 4, 5]));
7479
});
80+
test('Execute: getOne text', () async {
81+
var req1 = await db.getOne(
82+
table: 'test_data4',
83+
fields: '*',
84+
excludeFields: 'text_col',
85+
);
86+
print(req1['text_col']);
87+
expect(
88+
req1['text_col'],
89+
equals(
90+
'You can\'t have a better tomorrow if you are thinking about yesterday all the time.'));
91+
});
7592
test('Execute: drop table ', () async {
7693
await db.query("DROP TABLE IF EXISTS `test_data4`");
7794
});

0 commit comments

Comments
 (0)