GithubHelp home page GithubHelp logo

vbtools's Introduction

VBTools

A handful class modules for VB6/VBA

This stuff is already all over http://www.codereview.stackexchange.com, and as such is licensed under CC-by-SA as all Stack Exchange content is.

Enjoy!


###List

This class is essentially a Collection<T>, where all items are of type T... with lots of added functionality, largely inspired by .NET's System.Collections.Generics.List<T>. You'll never want to use a bare-bones Collection again!

###SqlCommand

Originally written for VB6 with SQL Server connections, this code works perfectly well with MySQL in VBA as well. The class can be used both as a "static class" and an object. This type/object is best used with the UnitOfWork class, which can encapsulate a database transaction.

###SqlResult

SqlCommand methods can return instead of an ADODB.Recordset - use it for smaller result sets, because there's a performance tradeoff here: when SqlCommand returns this object, the results have already been iterated once; for larger result sets it's probably better to work off the ADODB.Recordset directly.

###SqlResultRow

This class is essentially a generic DTO that SqlResult uses to "materialize" query results. Use the default property Item to refer to field names by name or by index.

###UnitOfWork

This class maintains a dictionary of IRepository implementations and initiates a database transaction when instantiated. The Dispose method rolls back any uncommitted changes, before closing the connection - this method is called automatically when the instance is terminated. Calling the Commit method commits the open transaction, and initiates a new one; calling the Rollback method rolls back the open transaction, and initiates a new one.

vbtools's People

Contributors

retailcoder avatar

Watchers

 avatar  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.