@@ -57,11 +57,11 @@ func TestValidWrites(t *testing.T) {
5757{
5858"multiple rows" ,
5959func (s * qdb.LineSender ) error {
60- err := s .Table (testTable ).StringColumn ("str_col" , "foo" ).IntColumn ("long_col" , 42 ).AtNow (ctx )
60+ err := s .Table (testTable ).StringColumn ("str_col" , "foo" ).Int64Column ("long_col" , 42 ).AtNow (ctx )
6161if err != nil {
6262return err
6363}
64- err = s .Table (testTable ).StringColumn ("str_col" , "bar" ).IntColumn ("long_col" , - 42 ).At (ctx , 42 )
64+ err = s .Table (testTable ).StringColumn ("str_col" , "bar" ).Int64Column ("long_col" , - 42 ).At (ctx , 42 )
6565if err != nil {
6666return err
6767}
@@ -75,7 +75,7 @@ func TestValidWrites(t *testing.T) {
7575{
7676"escaped chars in table name" ,
7777func (s * qdb.LineSender ) error {
78- return s .Table ("test 1\" 2=3" ).IntColumn ("a_col" , 42 ).AtNow (ctx )
78+ return s .Table ("test 1\" 2=3" ).Int64Column ("a_col" , 42 ).AtNow (ctx )
7979},
8080[]string {
8181"test\\ 1\\ \" 2\\ =3 a_col=42i\n " ,
@@ -159,7 +159,7 @@ func TestIntSerialization(t *testing.T) {
159159sender , err := qdb .NewLineSender (ctx , qdb .WithAddress (srv .addr ))
160160assert .NoError (t , err )
161161
162- err = sender .Table (testTable ).IntColumn ("a_col" , tc .val ).AtNow (ctx )
162+ err = sender .Table (testTable ).Int64Column ("a_col" , tc .val ).AtNow (ctx )
163163assert .NoError (t , err )
164164
165165err = sender .Flush (ctx )
@@ -202,7 +202,7 @@ func TestFloatSerialization(t *testing.T) {
202202sender , err := qdb .NewLineSender (ctx , qdb .WithAddress (srv .addr ))
203203assert .NoError (t , err )
204204
205- err = sender .Table (testTable ).FloatColumn ("a_col" , tc .val ).AtNow (ctx )
205+ err = sender .Table (testTable ).Float64Column ("a_col" , tc .val ).AtNow (ctx )
206206assert .NoError (t , err )
207207
208208err = sender .Flush (ctx )
@@ -523,13 +523,13 @@ func TestErrorOnMissingTableCall(t *testing.T) {
523523{
524524"long column" ,
525525func (s * qdb.LineSender ) error {
526- return s .IntColumn ("int" , 42 ).AtNow (ctx )
526+ return s .Int64Column ("int" , 42 ).AtNow (ctx )
527527},
528528},
529529{
530530"double column" ,
531531func (s * qdb.LineSender ) error {
532- return s .FloatColumn ("float" , 4.2 ).AtNow (ctx )
532+ return s .Float64Column ("float" , 4.2 ).AtNow (ctx )
533533},
534534},
535535}
@@ -592,13 +592,13 @@ func TestErrorOnSymbolCallAfterColumn(t *testing.T) {
592592{
593593"integer column" ,
594594func (s * qdb.LineSender ) error {
595- return s .Table ("awesome_table" ).IntColumn ("int" , 42 ).Symbol ("sym" , "abc" ).AtNow (ctx )
595+ return s .Table ("awesome_table" ).Int64Column ("int" , 42 ).Symbol ("sym" , "abc" ).AtNow (ctx )
596596},
597597},
598598{
599599"float column" ,
600600func (s * qdb.LineSender ) error {
601- return s .Table ("awesome_table" ).FloatColumn ("float" , 4.2 ).Symbol ("sym" , "abc" ).AtNow (ctx )
601+ return s .Table ("awesome_table" ).Float64Column ("float" , 4.2 ).Symbol ("sym" , "abc" ).AtNow (ctx )
602602},
603603},
604604}
@@ -723,8 +723,8 @@ func BenchmarkLineSender(b *testing.B) {
723723sender .
724724Table (testTable ).
725725Symbol ("sym_col" , "test_ilp1" ).
726- FloatColumn ("double_col" , float64 (i )+ 0.42 ).
727- IntColumn ("long_col" , int64 (i )).
726+ Float64Column ("double_col" , float64 (i )+ 0.42 ).
727+ Int64Column ("long_col" , int64 (i )).
728728StringColumn ("str_col" , "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua" ).
729729BoolColumn ("bool_col" , true ).
730730At (ctx , int64 (1000 * i ))
0 commit comments