Giter VIP home page Giter VIP logo

Comments (6)

mp911de avatar mp911de commented on May 24, 2024 1

There would be three types:

  • BINARY(n)
  • VARBINARY(n)
  • VARBINARY(MAX) - this one is related to #28. let’s leave this one for later.

from r2dbc-mssql.

uaihebert avatar uaihebert commented on May 24, 2024

Hello, I am willing to look into this, but I will need more info. I still new in r2dbc.

I noticed that we got the enum SqlServerType.

I was able to find this:

    VARBINARY(Category.BINARY,          "varbinary"),
    VARBINARYMAX(Category.LONG_BINARY,  "varbinary"),

When you say: " to support ByteBuffer / byte[] " it would mean new type on the SqlServerType? or create a new TdsDataType and include on the SqlServerType construtor?

from r2dbc-mssql.

uaihebert avatar uaihebert commented on May 24, 2024

I just found the TypeBuilder. should there be the new support added?

from r2dbc-mssql.

uaihebert avatar uaihebert commented on May 24, 2024

or maybe if you have any material that I should read/practice before going further, it would be good. ( :

from r2dbc-mssql.

mp911de avatar mp911de commented on May 24, 2024

Here are a few pointers:

Places that contain already support for BIGBINARY/BIGVARBINARY:

  • TdsDataType
  • SqlServerType
  • TypeBuilder

Places to change:

  • New ByteArrayCodec
  • New ByteBufferCodec
  • DefaultCodecs, add the new codecs.

I'm not sure regarding the default data type, I suppose it would make the most sense to decode binary types to byte[].

A tip for testing: I used the JDBC driver to set up a test case (create table, insert data, select data) and then use the verbose logging (see https://docs.microsoft.com/en-us/sql/connect/jdbc/tracing-driver-operation?view=sql-server-2017, logger com.microsoft.sqlserver.jdbc.internals.TDS.DATA) to intercept the wire protocol. Another possibility is using wireshark or tcpdump.

from r2dbc-mssql.

uaihebert avatar uaihebert commented on May 24, 2024

hello, I will invest time in this task this week.

Could you just help me with one more thing? I want to create a local table, what should be the correct column type?

from r2dbc-mssql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.