Comments (5)
By default Gstorm executes "CREATE TABLE IF NOT EXISTS" statement, so if table already exists, then it shouldn't be overwritten. Although, this would mean there has to be an id
column in the table which auto-increments itself.
from gstorm.
Oh, nice.
One more question. I've worked with some old databases that use abbreviations for table names. Is there a way to specify the name of the table?. E.g.
class Person {String name, project}
def g = GStorm(sql)
g.stormify(Person, 'PRS_TBL')
from gstorm.
Nevermind. I just went through the code and noticed it doesn't support it.
from gstorm.
Thanks for taking a look at the source and raising the first issue as well :) . Currently the implementation is very minimalistic. I am keeping this issue open to add capability to specify table name.
from gstorm.
9c977db (v0.4) Adds support for specifying the custom table name, here is the example.
@Table("people")
class Person { String name, project }
from gstorm.
Related Issues (20)
- Ability to get count of records HOT 1
- Easier Creation of Gstorm instance HOT 1
- Better place for documentation
- Need to be able to specify size of String
- Create annotation for model classes
- Connection properties file HOT 1
- Include in jcenter
- Bad <init> method call from inside of a branch
- gstorm 0.7 is announced in the README, but it is not in any Maven repository HOT 4
- Query `Item.where('name = "x"')` returns collection of `GroovyRowResult` HOT 7
- GStorm does not take fields from inherited class as part of the table HOT 3
- Update the docs for using csv files
- update references of gstorm usage to 0.7 or latest
- Use Git Tags for release/versioning
- Support SQLite DB
- Upgrade Versions
- Groovy as compile-only dependency
- Support JDK/JRE 11
- Try Groovy AST transformations
- Use slf4j for logging
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gstorm.