Comments (3)
Do you have the use_data_class_name_for_companions
builder option enabled? I think the default name for the companion class would be CategoriesCompanion
otherwise. Not exactly what you were looking for, but also not as bad as the current situation.
Is there a way to do the same thing when using SQL files to generate my tables?
Sure, you can use AS RowClassName
at the end of your table definition, so something like CREATE TABLE categories (...) AS Category
should work.
from drift.
I eventually migrated my table declaration from the SQL file to Drift Table classes, so that solved my problem. But thanks nonetheless!
from drift.
I'll close this then, being able to specify the table names in more detail is tracked in #2817.
from drift.
Related Issues (20)
- DataClass toJson/fromJson with column names HOT 2
- Does the uuidvalue from the drift_progres package not have a default converter? HOT 2
- Unable to scroll table sideways in drift viewer in Flutter DevTools HOT 2
- Wrong message when a non nullable converter is used on a nullable column:
- Storing multiple entries in a row using JSON encoding - Many-to-Many example HOT 1
- Encryption documentation (for `encrypted_drift`) (`file is not a database`) HOT 4
- Database Connection Handler. HOT 2
- How to reference a Table which is in another package? HOT 5
- Cannot use a pre-existing sqlite db in drift web HOT 1
- Deadlock when running statements created outside of transaction in transaction HOT 3
- support table-valued function syntax HOT 2
- NoSuchMethodError: Class 'GeneratedColumn<int>' has no instance method 'count'. HOT 1
- Don't wrap exceptions in `DriftRemoteException` if not necessary
- "type 'Null' is not a subtype of type 'InterfaceElement' in type cast" during code generation HOT 2
- Provide `Comparable` expressions for postgres types HOT 2
- Usage without Row Models HOT 2
- Error when validating database schema in Flutter DevTools HOT 2
- Very weired query, both true or false can no t be get out HOT 2
- Simple count(*)? HOT 1
- The 'ie' suffix of the DataClass generated when executing build is automatically changed to 'y' HOT 1
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 drift.