We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab672e4 commit 361c7bfCopy full SHA for 361c7bf
postgres-tokio/src/lib.rs
@@ -615,11 +615,21 @@ impl Connection {
615
}
616
617
618
-struct Column {
+pub struct Column {
619
name: String,
620
type_: Type,
621
622
623
+impl Column {
624
+ pub fn name(&self) -> &str {
625
+ &self.name
626
+ }
627
+
628
+ pub fn type_(&self) -> &Type {
629
+ &self.type_
630
631
+}
632
633
pub struct Statement {
634
close_sender: Sender<(u8, String)>,
635
@@ -635,6 +645,14 @@ impl Drop for Statement {
645
636
646
637
647
impl Statement {
648
+ pub fn parameters(&self) -> &[Type] {
649
+ &self.params
650
651
652
+ pub fn columns(&self) -> &[Column] {
653
+ &self.columns
654
655
638
656
pub fn execute(self,
639
657
params: &[&ToSql],
640
658
conn: Connection)
0 commit comments