GithubHelp home page GithubHelp logo

bacpactod's Introduction

BACPAC To D

BACPACToD Logo

Provides D read-only access to SQL Server BACPAC files. This program will pre-process BACPAC files and generate D code that you can then include in your D project.

It creates a source file for every parsed BACPAC file. This is a list of annotated structs for each table in the BACPAC. It also outputs a pre-written D file which includes methods to read this data given a BACPAC at run time.

This enables fast introspected full data fetches. The trade off is that the schema of the runtime version is expected to match the compiled version, and changes to this schema will require recompilation of your project.

This program does not provide any indexed access, data processing, or a query layer. It is designed to extract records out of a runtime provided BACPAC file into native D types ready for use. It cannot write changes back to the BACPAC.

The expected use case is to read a whole table once, then keep the returned collection for later use. Although the access is designed to be fast, it does require opening the BACPAC and decompressing the data, so this should not be repeated unnecessarily.

Usage:

BACPACToD [--input input_path_filter] [--output_directory directory_name] [--module_name destination_module_name]

--input input_path_filter

Where input_path_filter is the directory location and filter for any BACPAC files. It is recommended that this ends with ".bacpac".The default is "*.bacpac".

--output_directory directory_name

Where directory_name is the location the D files will be written to. This will be one file for each processed BACPAC, and bacpac.d which you can use to access the data. If only one BACPAC is found, the destination filename will be

--module_name destination_module_name

Where destination_module_name can be used to specify the output module name if there is only one input BACPAC file. If there are multiple input BACPAC files, then module names are inferred from the source files. The default is "table_definitions".

Return codes

Code Reason
0 Success
1 Help shown
2 No files found
3 Invalid or unexpected BACPAC contents or other failure

bacpactod's People

Contributors

adamrosswalker avatar

Watchers

 avatar

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.