bkietz opened a new pull request, #569:
URL: https://github.com/apache/arrow-nanoarrow/pull/569

   Construct `nanoarrow::UniqueSchema`s with a tiny C++ DSL:
   
   ```c++
     schema{children{
         {"i", "i32",
          metadata{
              "some_key=some_value",
          }},
         {"i", "i32",
          dictionary{{"u"}},
          metadata{
              "some_key=some_value",
          },
          ARROW_FLAG_NULLABLE},
     }};
   ```
   
   The python-equivalent signature is approximately:
   ```python
   def schema(format="+s", name="", metadata=[], flags=0, children=[], 
dictionary=None):
   ```
   
   After the first two arguments, all the rest can be provided in any order.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to