-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Isaque Neves
committed
Dec 28, 2023
1 parent
7ebf0be
commit 852f17e
Showing
10 changed files
with
62 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
const PDO_MYSQL_ATTR_SSL_VERIFY_SERVER_CERT = 1014; //false; | ||
const PDO_MYSQL_ATTR_SSL_KEY = 1007; //'/certs/client-key.pem'; | ||
const PDO_MYSQL_ATTR_SSL_CERT = 1008; //'/certs/client-cert.pem'; | ||
const PDO_MYSQL_ATTR_SSL_CA = 1009; //'/certs/ca.pem'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
import 'package:eloquent/src/pdo/core/pdo_interface.dart'; | ||
import 'pdo_result.dart'; | ||
|
||
|
||
|
||
abstract class PDOExecutionContext { | ||
late PDOInterface pdoInstance; | ||
|
||
/// Executa uma instrução SQL e retornar o número de linhas afetadas | ||
Future<int> execute(String statement, [int? timeoutInSeconds]); | ||
Future<PDOResults> query(String query, [dynamic params, int? timeoutInSeconds]); | ||
Future<PDOResults> query(String query, | ||
[dynamic params, int? timeoutInSeconds]); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters